azure - 获取 Azure 存储容器中的 blob 计数

标签 azure azure-storage azure-blob-storage

获取 Azure 存储容器中 Blob 数量的最有效方法是什么?

现在除了下面的代码之外我想不出任何方法:

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

最佳答案

如果您只想知道容器中有多少个 blob 而无需编写代码,则可以使用 Microsoft Azure Storage Explorer application

  1. 打开所需的 BlobContainer enter image description here
  2. 单击“文件夹统计信息”图标 enter image description here
  3. 观察“事件”窗口中的 blob 计数 enter image description here

关于azure - 获取 Azure 存储容器中的 blob 计数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6861865/

相关文章:

azure - 用于白名单的 Azure 存储 blob IP 范围是多少

c# - 从 Azure 应用服务访问 Blob 存储

wcf - 将具有 Web 角色的 WCF 服务部署到非 Azure 托管

c# - 验证cname记录

c# - Azure 存储中的默认值

html - Angular,Azure.CreateBlobService 未读取传入的环境变量或值?

azure - 使用 Azure Storage Rest API 创建文件夹而不创建默认 blob 文件

WCF 排队请求

azure - 是否可以使用 Windows 服务应用程序创建 Azure 服务总线中继?

c# - Azure 函数中的奇怪冲突