gpt4 book ai didi

azure - 如何找到Azure图像大小?

转载 作者:行者123 更新时间:2023-12-03 00:59:39 25 4
gpt4 key购买 nike

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

最佳答案

您可以使用:

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

关于azure - 如何找到Azure图像大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62776974/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com