Create Folder in Azure Blob container

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.

How to create a folder in Azure blob storage

Step 2: Click the newly created container name and then the Upload button.

how to create folder in azure blob container

Step 3: Now, the upload blade will open. Click the browse button and select your local file to upload as a block blob.

azure blob storage create folder

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.

how to create folder in azure blob container using c#

Step-5: Now, see here. It created a folder named MyFolder inside the container.

azure blob create folder

Step 6: If you go inside the folder, you can see the Hello.txt file/blob.

create folder in container azure

This is how we can create folder structure in Azure blob storage.

Check out How to Upload and Download File From Azure Blob Storage Using C# and PowerShell

Wrapping Up

In this article, we discussed creating a folder in Azure blob container. Thanks for reading this article !!!