Size of storage account RRS feed

  • Question

  • Hi Team,

    We are using multiple storage account to store the information in Blobs and Tables. Information is continuously uploaded in Blobs and Tables. Since the storage account have max size limit we want to know the current size of the storage account for monitoring purpose. Is there any APIs that can give us the current size of the storage account.


    Naresh Jakher

    Tuesday, December 3, 2013 8:20 AM


All replies

  • While you can find the size of total blobs programmatically, currently there's no way to find that information about table storage size. To find the total blob storage size, first you would need to enable storage analytics on your storage account and once it is enabled, you can query "$MetricsCapacityBlob" table to find the blob storage size. You can find more information about storage analytics here http://msdn.microsoft.com/en-us/library/windowsazure/hh343270.aspx.

    Hope this helps.

    Tuesday, December 3, 2013 8:39 AM
  • Hi Gaurav,

    Thxs for the information, it seems Storage Analytics needs to be enabled to get the information. It is bit strange that there is no API to directly get the size of the overall storage account and not at the Blob, Table and Queue level.

    Tuesday, December 3, 2013 9:00 AM
  • Storage analytics provide you this capability to some extent. You can find the total size of blob storage using $MetricsCapacityBlob table. More information about it here: http://msdn.microsoft.com/en-us/library/windowsazure/hh343264.aspx.

    Other alternative from Cerebrata is their Azure Management Cmdlets product (http://www.cerebrata.com/products/azure-management-cmdlets/features). You can use Get-BlobContainerSize Cmdlet to find the size and total number of blobs in a blob container.

    This posting is provided AS IS, with no warranties, and confers no rights.

    Tuesday, December 3, 2013 9:06 AM