Cannot create a folder under the blob container

Bigiron 110 Reputation points
2023-04-13T18:34:40.01+00:00

Hi All, I tried different ways but not able to create a new folder, i tried upload as well. please advice. User's image

Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
239 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,576 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sudipta Chakraborty - MSFT 1,101 Reputation points Microsoft Employee
    2023-04-13T19:13:21.84+00:00

    @Bigiron : From the azure portal you can go inside your container —> click on Upload —> in the Advanced section go to Upload to Folder and provide a folder name —> browse the file to upload —> click on Upload button You should see a folder getting created. In case you are facing any error please share the error details along with the screenshot. Also provide the storage account Resource Id, Activity Id and time stamp of the issue for further troubleshooting.

    6 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Erkan Sahin 830 Reputation points
    2023-04-13T19:10:54.2466667+00:00

    Hi Bigiron!

    When working with blob storage, it's important to understand that it doesn't have a traditional folder hierarchy like you would find in a typical file system. Instead, blob storage uses a flat structure where blobs are organized using containers and unique names. To simulate a folder structure, you can use a naming convention with delimiters, such as forward slashes (/). Here's an example:

    1. Create a new container or use an existing one.
    2. When uploading a blob, name it with the desired folder structure, like "folder/subfolder/myfile.txt".
    3. The blob storage will still be flat, but it will now appear as if there's a folder structure when accessing or listing the blobs. This way, you can have a logical folder structure for organizing your data. Just remember to use the same delimiter consistently. Good luck, and please mark my answer :-)
    1 person found this answer helpful.

  2. Sumarigo-MSFT 44,891 Reputation points Microsoft Employee
    2023-04-17T09:54:23.85+00:00

    @Bigiron Welcome to Microsoft Q&A Forum, Thank you for posting your query here! As I understand, you want to create a empty folder in the blob container am I correct ? If so, please refer to the suggestion mentioned in the thread How to create empty folder in azure blob storage

    It is not possible to keep empty directories/folder in Azure Blob Storage if the Hierarchical namespace is disabled.
    To keep the empty directories in Azure Blob Storage, you need to use Data Lake Gen2 Storage Account

    Please let us know if you have any further queries. I’m happy to assist you further.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments