我正在尝试使用 Windows Azure Pack 中的 PowerShell 创建一个 VM。我已经下载了订阅,并Get-WAPackVM
返回了已经创建的 VM。
我试过运行这两个脚本:
$OSDisk = Get-WAPackVMOSDisk -Name "W2012R2 Template_disk_1"
$SizeProfile = Get-WAPackVMSizeProfile -Name "Template"
New-WAPackVM -Name "ContosoV073" -OSDisk $OSDisk -VMSizeProfile $SizeProfile
和
$Credentials = Get-Credential
$Template = Get-WAPackVMTemplate -Name "Template 1"
New-WAPackVM -Name "VirShits7" -Template $Template -VMCredential $Credentials -Windows
两者都返回相同的错误:
New-WAPackVM : The remote server returned an error: (400) Bad Request.
所有 Get cmdlet 都返回值,并且似乎是正确的。任何人都知道我如何让这个工作?