Getting blob count in an Azure Storage container

brennazoon picture brennazoon · Jul 28, 2011 · Viewed 24.5k times · Source

What is the most efficient way to get the count on the number of blobs in an Azure Storage container?

Right now I can't think of any way other than the code below:

CloudBlobContainer container = GetContainer("mycontainer");
var count = container.ListBlobs().Count();

Answer

Matt picture Matt · Feb 14, 2018

If you just want to know how many blobs are in a container without writing code you can use the Microsoft Azure Storage Explorer application.

  1. Open the desired BlobContainer enter image description here
  2. Click the Folder Statistics icon enter image description here
  3. Observe the count of blobs in the Activities window enter image description here