5
我正在關注的最新的2011年2月天青培訓工具包的例子。的Windows Azure PowerShell的部署錯誤 - 「遠程服務器返回了意外的響應」
我已經成功地使用
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
任何人都可以提出我要去哪裏錯了嗎?
發現this link詳細說明了沒有一個解決同樣的問題。