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.

How to create folder in Azure Blob Container

There is one way to do this. You can follow the below steps to do that.

1. Navigate to the newly created container in the Azure portal you created above.

create folder in blob container c#

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

how to create folder in azure blob container using c#

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

create folder in azure blob container

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.

azure blob storage create folder

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

create folder in blob container

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

how to create folder in container on 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 how to create a folder in Azure blob container. Thanks for reading this article !!!