I'm writing a PowerShell script that uses the Azure Storage CLI. I'm looking for a way to list only the directories under a certain path. I can easily list blobs using az storage blob list
but I'm hoping I can just get the directories without post-processing the result. Given that Azure blob storage has a flat file structure, I'm not really sure this is possible but thought someone might know something I don't.
Thanks.
As mentioned, Azure Blob Storage is flat. For a hierarchical filesystem, check out Azure File Storage.
Check out the quickstart for the CLI: https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-cli