简体   繁体   English

Windows Azure Powershell部署错误 - “远程服务器返回了意外响应”

[英]Windows Azure Powershell Deployment Error - “The remote server returned an unexpected response”

I'm following the latest February 2011 Azure Training Kit example. 我正在关注最新的2011年2月Azure培训套件示例。

I've successfully deployed using 我已成功部署使用

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

Then running the next step - 然后运行下一步 -

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

Gives this error. 给出了这个错误。

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

Can anyone suggest where I'm going wrong? 任何人都可以建议我哪里出错了?

Found this link detailing same issue that doesn't have a resolution. 找到此链接详细说明了没有解决方案的相同问题。

The example gives this information 该示例提供了此信息

Important : The Set-Deployment cmdlet assumes that the compute service and storage service names are the same. 要点 :Set-Deployment cmdlet假定计算服务和存储服务名称相同。 If this is not the case, specify an additional parameter -StorageServicename , replacing the placeholder with the name of the storage service name. 如果不是这种情况,请指定其他参数-StorageServicename,将占位符替换为存储服务名称的名称。

My storage service name does have the same name as the compute service, but adding that param made it work, 我的存储服务名称与计算服务的名称相同,但添加该参数使其工作,

ie. 即。

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 
                         -storageServiceName xxxxmytodo99 
                         -label "v2.2" 
    | Get-OperationStatus -WaitToComplete  

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “远程服务器返回错误:(407) 需要代理身份验证。” 在 Azure Devops 中注册部署组时出错 - “The remote server returned an error: (407) Proxy Authentication Required.” Error when registering deployment group in Azure Devops 无法在具有Windows Powershell远程功能的Windows Server Azure VM上运行任何程序,没有错误 - Can not run any program on windows server Azure VM with windows powershell remote, No error Invoke-RestMethod:远程服务器返回错误:(403) Forbidden PowerShell - Invoke-RestMethod : The remote server returned an error: (403) Forbidden PowerShell PowerShell 脚本返回“远程服务器返回错误:(401) 未经授权” - PowerShell script return "The remote server returned an error: (401) Unauthorized" 远程服务器返回错误:(401) Unauthorized - PowerShell - Microsoft Graph API - The remote server returned an error : (401) Unauthorized - PowerShell - Microsoft Graph API Powershell - Sharepoint 自动文件上传返回“远程服务器返回错误:(403) 禁止。” 错误 - Powershell - Sharepoint Auto file upload returning "The remote server returned an error: (403) Forbidden." error Azure pipeline powershell and git on windows server 2019 gives error in output - Azure pipeline powershell and git on windows server 2019 gives error in output Powershell错误在Azure上打开Open Edx部署 - Powershell Error Open Edx deployment on Azure Azure Powershell部署文件目录错误 - Azure Powershell Deployment File Directory Error Powershell Invoke-RestMethod:远程服务器返回错误:(413) 请求实体太大 - Powershell Invoke-RestMethod : The remote server returned an error: (413) Request Entity Too Large
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM