【问题标题】:How to find the Azure image size?如何查找 Azure 映像大小?
【发布时间】:2020-07-07 22:05:14
【问题描述】:

在 Azure 中,我从 VM 创建了一个映像,如下所示。 我想检查图像大小,但我无法从门户中找到它。我也检查了Az Powershell 和 az cli,但我没有看到任何命令给我它的大小。有没有办法获取这些信息?

【问题讨论】:

    标签: azure azure-virtual-machine


    【解决方案1】:

    你可以使用:

    $resourceId = "" # The resource ID of your image
    $i=Get-AzureRmResource -ResourceId $resourceId
    $diskSize = $i.Properties.storageProfile.osDisk.diskSizeGB
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-06-24
      • 1970-01-01
      • 1970-01-01
      • 2016-06-14
      • 1970-01-01
      • 2020-12-27
      • 1970-01-01
      • 2021-12-04
      相关资源
      最近更新 更多