简体   繁体   English

使用 Azure Cli 获取 Azure 存储 Blob 文件大小

[英]Get Azure Storage Blob File Size using Azure Cli

Does anyone know the Azure CLI command to get the size of a file in azure blob storage?有谁知道 Azure CLI 命令来获取 azure blob 存储中文件的大小? I see that in properties, there is length - but I need the file size in GB or TB.我看到在属性中,有长度 - 但我需要以 GB 或 TB 为单位的文件大小。

I have used below command and followed Microsoft-Document as below:我使用了以下命令并遵循Microsoft-Document如下:

az storage blob list --account-name xx --container-name yy

xx- name of storage account xx- 存储帐户的名称

yy- name of container yy- 容器名称

在此处输入图像描述

If kb then divide by 1024, if MiB then 1024², if GiB then 1024³如果 kb 然后除以 1024,如果 MiB 然后 1024²,如果 GiB 然后 1024³

You can get the Size of Blob by clicking on the blob like below:您可以通过单击下面的 blob 来获取 Blob 的大小:

在此处输入图像描述

You can also find the size of the blob by clicking on the properties on left pane and click on calculate size as below:您还可以通过单击左侧窗格上的属性并单击计算大小来找到 blob 的大小,如下所示:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM