[BUG] Blob container's metadata is always empty when listed
See original GitHub issueDescribe the bug
I’m using the Azure.ResourceManager.Storage sdk and the StorageManagementClient
client, and calling client.BlobContainers.ListAsync
. The returned list of ListContainerItem
has a property called Metadata
, which is basically the same as tags. The issue is that the Metadata I see on the blob container in the azure portal isn’t in the returned ListContainerItem
, instead it is always an empty IDictionary
.
On the contrary, when I fetch the blob container with client.BlobContainers.GetAsync
, the Metadata is returned correctly.
Expected behavior
The Metadata will be present in the returned ListContainerItem
.
Actual behavior (include Exception or Stack Trace)
The Metadata property is an empty IDictionary
.
To Reproduce
- Create a
StorageManagementClient
client. - Call
client.BlobContainers.ListAsync
. - See that the Metadata is always empty
Environment:
- Azure.ResourceManager.Storage - 1.0.0-preview.2
- Windows 10, .NET Framework 5
- e.g. Visual Studio 16.8.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (10 by maintainers)
Top Results From Across the Web
How to check if metadata is empty
I tried in my system. Try with using blob.Metadata.Count which returns the integer value if the metadata data not set it returns the...
Read more >Azure Storage blob inventory
Empty containers aren't listed in the blob inventory report. A report for containers describes containers and their associated properties ...
Read more >Manage block blobs with PowerShell - Azure Storage
Manage blob properties and metadata. A container exposes both system properties and user-defined metadata. System properties exist on each Blob ...
Read more >Microsoft Azure Blob Storage
This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details....
Read more >Object Storage API — swift documentation
Lists containers for an account. Creates, updates, shows, and deletes account metadata. For more information and concepts about accounts see Object Storage ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@omri-muszkal Actually, the issue is on server side instead of Client (SDK) side. (Both Arthur and me works on client side.) So we will need server team to update server by return the container metadata to fix this issue?
We have contact server team, and a bug is already opened. However, it looks the issue is still not fixed on server side.
To make server team understand the importance and priority of this issue, you might can also try to connect to Server team with your channel, such like open a help request from Azure portal.
Close as this is not client-side issue, please file ticket to ask service team to fix it.