Calculate Storage account costing

Ganesh Shrivas 21 Reputation points
2021-08-30T06:02:21.297+00:00

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 - https://learn.microsoft.com/en-us/rest/api/storagerp/blob-containers/list

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
    2021-08-30T06:26:34.523+00:00

    Hi @Ganesh Shrivas ,

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

    127427-image.png

    ----------

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

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. Ganesh Shrivas 21 Reputation points
    2021-08-30T06:46:16.527+00:00

    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

    https://learn.microsoft.com/en-us/rest/api/storagerp/blob-containers/list

    0 comments No comments

  3. sadomovalex 3,631 Reputation points
    2021-08-30T14:39:58.247+00:00

    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}.blob.core.windows.net/{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:

    127550-2021-08-30-17-35-04.png

    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:

    127635-2021-08-30-17-36-19.png

    0 comments No comments

  4. Ganesh Shrivas 21 Reputation points
    2021-08-31T10:24:05.62+00:00

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