我一直在使用Azure PowerShell模块,并使用此cmdlet来获取已发布或未发布的图像详细信息:
Get-AzureVMImage | where-object { $_.Label -like "$ImageName" }
我需要转到Az模块。替代cmdlet似乎是Get-AzVMImage。但这似乎没有提供列出未发布图像的方法。
答案 0 :(得分:1)
根据我的理解,您想要获取自定义图片。如果是这样,您可以使用命令“ https://www.freecodecamp.org/news/you-just-need-to-know-these-properties-to-start-loving-css-a06aca6087e9”来获取它。例如:
Connect-AzAccount -Subscription "your subscrition id" -Tenant "your tenant id"
Get-AzImage -ImageName "" -ResourceGroupName ""