Calculate Storage account costing

Ganesh Shrivas 21 Reputation points

Hi Team,

I want to calculate storage account costing, Specially for "Blog Storage" . When I read documentation and checked Azure price calculator it Uses "Capacity" in DB to calculate price. So I tried blog storage apis which is available here on portal -

I check response of all api's but not getting information regarding the capacity used by blog-storage account. so I want suggestion How can we calculate COST for storage account.

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
162 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,838 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,563 questions
Azure Queue Storage
Azure Queue Storage
An Azure service that provides messaging queues in the cloud.
99 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Andreas Baumgarten 100.8K Reputation points MVP

    Hi @Ganesh Shrivas ,

    in Azure Portal it's possible to calculate and see the capacity of a blob container:



    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Andreas Baumgarten

    0 comments No comments

  2. Ganesh Shrivas 21 Reputation points

    Hi @Andreas Baumgarten Thanks for you quick reply.

    I know I can check capacity information from Portal But I need this information in rest API so that I can show it on my website.

    Please let me know if any Rest API in available which will return blob storage information I found some API related to blob but they are not returning Capacity information. here are API LIST related to blog storage

    0 comments No comments

  3. sadomovalex 3,631 Reputation points

    not sure is it public API or not but MS uses the following request: if you go to Container properties page, run Fiddler and then click Calculate size - you may see HTTP GET request which will looks like that:

    GET https://{storageAccountName}{containerName}?restype=container&comp=list&sv=2020-08-04&ss=bqtf&srt=sco&sp=rwdlacuptfxi&se=2021-08-30T22:26:45Z&sig=...

    It will return xml response which looks like this:


    i.e. set of blobs with different BlobType (on above picture there are only BlockBlob). Then I assume it calculates overall size as sum of sizes of each blob (per type) and shows it on Container size:


    0 comments No comments

  4. Ganesh Shrivas 21 Reputation points

    thanks @sadomovalex for your response it helps but these api not public so I can't use it.