我使用的是从这里开始的Windows Azure PowerShell命令v0.6.7:https://www.windowsazure.com/en-us/manage/downloads/布展AzureDeployment PowerShell命令失败
当我运行下面的命令:
Move-AzureDeployment -ServiceName $AzureServiceName
我得到以下错误:
Move-AzureDeployment : There was no endpoint listening at https://management.core.windows.net/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/services/hostedservices/xxxxxxxxxxxxxxx/deploymentslots/Production that could accept the message.
错误是有点正确的,在我的Staging插槽只有一个部署。然而,对于移动-AzureDeployment的文件(http://msdn.microsoft.com/en-us/library/windowsazure/jj152834.aspx)规定:
If there is a deployment in the staging environment and no deployment in the production environment, the deployment will move to production.
前述天青PowerShell命令在同一脚本,如New-AzureDeployment,成功执行。我通过使用Set-AzureSubscription来启动脚本来配置订阅信息和证书。
不知道我错过了什么帮助表示感谢,谢谢!
作为唯一一个偶然的Powershell用户,这不是明显对我如何加载证书。我最终解决了这个问题。我希望我能在一段时间内挽救他人的阅读。您可以使用:$ global:ManagementCertificate = gci cert:\ CurrentUser \ My \其中是证书指纹。这假定证书已安装在您的个人商店中。 –