none
Get the size of a Blob storage container RRS feed

  • Question

  • Hi all

    We are struggling to find an efficient way to get the size of a single Blob container.

    We are aware we can iterate over all blobs and sum their length, as described in here (from 2 years ago):

    https://docs.microsoft.com/en-us/azure/storage/scripts/storage-blobs-container-calculate-size-powershell

    But this becomes impractical for large data sets.

    Is anyone aware of a better way to achieve this?

    Regards

    Rainer

    Monday, September 16, 2019 8:09 AM

All replies

  • I don't think, so far, it is technically possible to get Container size with out Blob listing and calculating their total size. So, the way you are doing now it is right way as per MS.
    Monday, September 16, 2019 8:41 AM
  • I understand that you want to know how to find the size of individual Blob in your container.

    This script calculates the size of a container in Azure Blob storage for the purpose of estimating billing costs. The script totals the size of the blobs in the container. I would recommend this would be the best option,

    Folder’s don’t actually exist. In an Azure storage account, you have containers which are filled with blobs like folders filled with files.

    Each file in your container would be one of three types of Blobs like Block Blob, Page Blob and Append Blob.

    You can find it in container like in container properties in portal. It would list all types of Blobs in it i.e. Block blob, Page Blob and Append Blob count and sizes along with total container size. You might be needed to find all container sizes in your Blob service.

    You can see Usage under Blob Service blade.

    1. You can check the size of a container in the azure portal. Open the container, select properties under Settings, the click the Calculate Size button. This will give you a size for each blob type as well as a total size for the container.
     2.  If you want to perform a count of the containers within a storage account then you can use PowerShell to perform that task.

    For more information:


    Maximum storage account capacity: 2 PB for US and Europe, 500 TB for all other regions, which includes the UK Maximum number of blob containers, blobs, file shares, tables, queues, entities, or messages per storage account : No limit

    I'd recommend checking the following link: https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits#storage-limits

    Hope this helps! 

    Kindly let us know if the above helps or you need further assistance on this issue. 
    ------------------------------------------------------------------------------------------
    <o:p></o:p>

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Monday, September 16, 2019 9:47 AM
    Moderator
  • @Rainer Franz Schamm Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Wednesday, September 18, 2019 5:47 AM
    Moderator
  • @Rainer Franz Schamm  Is there any update on the issue?

    If the suggested answer helped for your issue, do click on "Mark as Answer" and “Vote as Helpful” on the post that helps you, this can be beneficial to other community members.

    Monday, September 23, 2019 7:11 AM
    Moderator
  • @Rainer Franz Schamm Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Tuesday, September 24, 2019 3:13 PM
    Moderator
  • @Rainer Franz Schamm Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Wednesday, September 25, 2019 2:26 PM
    Moderator