【发布时间】:2016-08-17 09:53:09
【问题描述】:
我正在尝试使用 Get-AzureRMVMImage 获取 AzureRM 的所有可用 VM 映像,但它没有像命令 Get-AzureVMImage 那样列出任何映像
如果我按照Get-AzureRMVmImage 帮助中给出的示例进行操作,那么它不会列出该 Ubuntu 虚拟机。下面是我尝试获取 Windows 2012 R2 Datacenter Image。
PS C:\> Get-AzureRMVMImage -location "Central us" -publisherName "Microsoft" -offer "Windows Server 2012 R2 DataCenter"
Get-AzureRmVMImage : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ Get-AzureRMVMImage -location "Central us" -publisherName "Microsoft" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-AzureRmVMImage], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Azure.Commands.Compute.GetAzureVMImageCommand
列出可用 RM vm 映像的正确 cmdlet 是什么?
【问题讨论】:
标签: azure azure-virtual-machine azure-powershell azure-resource-manager