Windows Azure Powershell部署错误 – “远程服务器返回了意外响应”
发布时间:2020-05-22 21:27:02 所属栏目:Windows 来源:互联网
导读:我正在关注最新的2011年2月Azure培训套件示例. 我已成功部署使用 New-Deployment -serviceName xxxxmytodo99 -subscriptionId cxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -certificate (get-item cert:
|
我正在关注最新的2011年2月Azure培训套件示例. 我已成功部署使用 New-Deployment -serviceName xxxxmytodo99
-subscriptionId cxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
-certificate (get-item cert:CurrentUserMYxxxxxxxxxxxx)
-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:CurrentUserMYxxxxxxxxxxxx)
| 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:CurrentUserMYxxxxxxxxxxxx) | 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详细说明了没有解决方案的相同问题. 该示例提供了此信息
我的存储服务名称与计算服务的名称相同,但添加该参数使其工作, 即. Get-HostedService -serviceName xxxxmytodo99
-subscriptionId cxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
-certificate (get-item cert:CurrentUserMYxxxxxxxxxxxx)
| Get-Deployment staging
| Set-Deployment -package MyTodo.cspkg
-configuration ServiceConfiguration.cscfg
-storageServiceName xxxxmytodo99
-label "v2.2"
| Get-OperationStatus -WaitToComplete (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
推荐文章
站长推荐
- Windows下搭建以太坊私有链环境1.8.2
- windows – 直接从文件系统获取文件校验和,而不是
- 命令行 – 批处理脚本 – 更改桌面上文件夹的图标
- 在Windows UWP应用程序中使用Python和C#
- 用windows下编译过的eAccelerator for PHP 5.1.6
- Microsoft SQL Server 不同系统版本支持和下载说
- Vulkan Tutorial 07 Window surface
- Windows系统搭建GitServer--Bonobo Git Server
- winapi – 来自Win32应用程序的x64图像上的OpenP
- cygwin – 用Cywgin启动X.
热点阅读
