如何获取未发布图像的图像详细信息

时间:2019-09-06 02:09:37

标签: azure-powershell

我一直在使用Azure PowerShell模块,并使用此cmdlet来获取已发布或未发布的图像详细信息:

Get-AzureVMImage | where-object { $_.Label -like "$ImageName" }

我需要转到Az模块。替代cmdlet似乎是Get-AzVMImage。但这似乎没有提供列出未发布图像的方法。

那么,您如何获取未发布图像及其详细信息的列表? Azure Portal Listing

1 个答案:

答案 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 ""

Get-AzImage