如何使用 PowerShell 获取特定发布者提供的 Azure 镜像?
powershellmicrosoft technologiessoftware & coding更新于 2026/2/12 15:37:17
要获取特定发布者(例如 Microsoft)在特定位置提供的 Azure 镜像,我们可以使用 Get-AzVMImageOffer 命令。例如,以下命令将检索 EastUs 位置以及发布者 MicrosoftWindowsServer 提供的所有可用镜像。
PS C:\> Get-AzVMImageOffer -Location Eastus -PublisherName "MicrosoftWindowsServer"
输出

来自 RedHat,
PS C:\> Get-AzVMImageOffer -Location Eastus -PublisherName RedHat
输出


