An Azure service that stores unstructured data in the cloud as blobs.
Hey @Dariel Villaplana,
No, Azure Blob Storage does not support true empty folders/directories in the same way a traditional file system (like your local drive or SharePoint) does.
Blob Storage uses a flat namespace, everything is stored as blobs (objects) inside containers, and what appears as "folders" are just virtual directories created by including forward slashes (/) in the blob names (e.g., myfolder/myfile.txt creates the appearance of a folder called myfolder).
Because of this design:
- Folders only appear when at least one blob exists with that prefix.
- Truly empty folders (with zero blobs under that prefix) do not persist and cannot be created natively.
Common Workarounds for "Empty" Folders
- Upload a zero-byte (empty) placeholder blob (most common method) :
Create a blob named exactly like the folder path with a trailing slash, or a hidden marker file (e.g., myfolder/ or myfolder/.keep or myfolder/empty.txt with 0 bytes).
Using Azure CLI (simple and effective):
az storage blob upload \
--account-name <your-storage-account> \
--container-name <your-container> \
--name "yourfolder/" \
--file /dev/null # on Linux/macOS
# or on Windows PowerShell: --file $null
- Upload a small marker file (e.g.,
keep.txt,.placeholder, orempty.txt) :
This is what many people do when scripting or migrating content. The file can be 0 bytes or contain a note like "Placeholder - do not delete".
- If you need real empty folders that persist
Enable Hierarchical Namespace on your storage account (this upgrades it to Azure Data Lake Storage Gen2).
Note: This is a one-way change , once enabled, it cannot be disabled. It also changes some pricing/behavior slightly, but it's ideal if you need filesystem-like semantics (e.g., rename folders, ACLs per directory, SFTP support).
Check: [Azure Data Lake Storage Gen2 introduction]
Regarding SharePoint Folder Uploads
When uploading/syncing folders from SharePoint (which supports real empty folders) to Blob Storage, empty folders often disappear because no blob exists under that prefix. This is why you end up manually creating placeholders or editing paths — it's the expected behavior in standard Blob Storage (HNS disabled).
If the information above wasn't helpful, please share the additional details requested via private message.
If the answer is helpful, please "Accept the answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".