@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.
Cannot create a folder under the blob container
Hi All,
I tried different ways but not able to create a new folder, i tried upload as well. please advice.
-
Sudipta Chakraborty - MSFT 1,101 Reputation points Microsoft Employee
2023-04-13T19:13:21.84+00:00
2 additional answers
Sort by: Most helpful
-
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:
- Create a new container or use an existing one.
- When uploading a blob, name it with the desired folder structure, like "folder/subfolder/myfile.txt".
- 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 :-)
-
Sumarigo-MSFT 44,906 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 AccountPlease 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.