Yuvraj Mule
Yuvraj Mule

Reputation: 450

How to get the size of Azure Blob Container without blob list iteration?

I'm using Azure Blob storage .Net client library v11.

My azure blob container has more than 20 million files. Listing blob and getting size of each blob is too much time consuming operation.

Looking for method to directly get the size of blob container.

Upvotes: 1

Views: 1250

Answers (2)

Ivan Glasenberg
Ivan Glasenberg

Reputation: 30025

No, there is no such api/sdk. Please keep eyes on this github issue.

If you prefer using code, you must calculate them one by one. Here is an exmaple.

Otherwise, you should check it via azure portal UI. There is an "Calculate size" button under each container -> Properties.

Upvotes: 1

Manthan Sharma
Manthan Sharma

Reputation: 1

Sign in the azure portal. In the Azure portal, select Storage accounts. From the list, choose a storage account. In the Monitoring section, choose Insights (preview).

Upvotes: 0

Related Questions