我正在关注 2011 年 2 月最新的 Azure 培训工具包示例。
我已经成功部署使用
New-Deployment -serviceName xxxxmytodo99
-subscriptionId cxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
-certificate (get-item cert:\CurrentUser\MY\xxxxxxxxxxxx)
-slot staging
-package MyTodo.cspkg
-configuration ServiceConfiguration.cscfg
-label "v2.0"
-storageServiceName xxxxmytodo99
然后运行下一步 -
Get-HostedService -serviceName xxxxmytodo99
-subscriptionId cxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
-certificate (get-item cert:\CurrentUser\MY\xxxxxxxxxxxx)
| Get-Deployment staging
| Set-Deployment -package MyTodo.cspkg
-configuration ServiceConfiguration.cscfg
-label "v2.1"
| Get-OperationStatus -WaitToComplete
给出这个错误。
Set-Deployment : The remote server returned an unexpected response: (400) Bad Request.
At line:1 char:232
+ Get-HostedService -serviceName xxxxmytodo99 -subscriptionId cxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -certificate (get-item cert:\CurrentUser\MY\xxxxxxxxxxxx) | Get-Deployment staging | Set-Deployment <<<< -package MyTodo.cspkg -configuration ServiceConfiguration.cscfg -label "v2.2" | Get-OperationStatus -WaitToComplete
+ CategoryInfo : CloseError: (:) [Set-Deployment], ProtocolException
+ FullyQualifiedErrorId : Microsoft.Samples.AzureManagementTools.PowerShell.HostedServices.SetDeploymentCommand
谁能建议我哪里出错了?
发现此链接详细说明了没有解决方案的相同问题。