Consider a scenario where instead of uploading the file directly to the Azure storage container, you must create a folder inside the Azure storage container and then upload the file/Blob inside that folder. Let us learn how to create a folder in Azure blob container.
Create Folder in Azure Blob container
There is one way to do this. You can follow the below steps to do that.
Step-1: Navigate to the newly created container in the Azure portal you created above.
Step 2: Click the newly created container name and then the Upload button.
Step 3: Now, the upload blade will open. Click the browse button and select your local file to upload as a block blob.
Step-4: On the Upload blob window, browse the local file, and expand the Advanced option, enter the folder name for the Upload to folder option. Now click on the Upload button.
Step-5: Now, see here. It created a folder named MyFolder inside the container.
Step 6: If you go inside the folder, you can see the Hello.txt file/blob.
This is how we can create folder structure in Azure blob storage.
In this article, we discussed creating a folder in Azure blob container. Thanks for reading this article !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.