locked
how can we check the block size of uploaded BlockBlob on azure portal RRS feed

  • Question

    • i uploaded the file in BlockBlob, as we know file is divided into block and uploaded on azure block storage.
    • each block have unique id and size in block blob storage.
    • in azure portal i am not able to see the block size of uploaded blob. is it 4MB or 100MB or what?
    • how can we check the block size and id of uploaded azure blockblob
    Wednesday, April 29, 2020 5:44 PM

All replies

  • @Virender KaushikFirstly, apologies for the delay in responding here and any inconvenience this issue may have caused. 

    You can View complete Blob Type, Access Tier, Content Type, URi, Size, Unique Block Blob size and more  in Storage Explorer 

     

    Hope this helps! 

    Kindly let us know if the above helps or you need further assistance on this issue.
    ------------------------------------------------------------------------------------------
    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Thursday, April 30, 2020 6:12 PM
  • 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.

    Wednesday, May 6, 2020 3:41 PM
  • i want to check the block size, blob properties shows the blob size not block size.

    share if any way to check the block size.

    Thursday, May 7, 2020 7:36 AM
  • Hi, so far as I know, you need to write code to check the size of a block.

    When a blob is uploaded in blocks, the blocks form a block list. To create the blob, you commit the block list. Either before or after the blob has been created, you can read the block list to get the ID and length for each block.

    Here is .NET code that gets the block list and enumerates the blocks and their sizes. This code is using version 11 of the .NET client library for Azure Storage.

    private static async Task ReadBlockListAsync(CloudBlockBlob blob)
    {
        int committedBlocks = 0;
        int uncommittedBlocks = 0;
    
        // Get the blob's block list.
        foreach (var listBlockItem in await blob.DownloadBlockListAsync(BlockListingFilter.All, null, null, null))
        {
            if (listBlockItem.Committed)
            {
                Console.WriteLine(
                                    "Block {0} has been committed to block list. Block length = {1}",
                                    listBlockItem.Name, 
                                    listBlockItem.Length);
                committedBlocks++;
            }
            else
            {
                Console.WriteLine(
                                    "Block {0} is uncommitted. Block length = {1}",
                                    listBlockItem.Name, 
                                    listBlockItem.Length);
                uncommittedBlocks++;
            }
        }
    
        Console.WriteLine();
        Console.WriteLine("Count of committed blocks: {0}", committedBlocks);
        Console.WriteLine("Count of uncommitted blocks: {0}", uncommittedBlocks);
        Console.WriteLine();
    }
    


    Monday, May 11, 2020 10:40 PM
  •  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.

    Thursday, May 14, 2020 7:54 AM
  • 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.


    Wednesday, May 27, 2020 7:36 AM