2011-03-18 4 views
5

저는 최신 February 2011 Azure Training Kit 예제를 따릅니다.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이 나와 있습니다.

답변

4

의 예는이 정보를

중요을 제공합니다 : 설정 - 배포 cmdlet을 은 컴퓨팅 서비스와 스토리지 서비스 이름이 동일한 것으로 가정합니다. 이 아닌 경우 추가 매개 변수 -StorageServicename, 을 지정하여 자리 표시자를 스토리지 서비스 이름 으로 바꿉니다.

내 스토리지 서비스 이름은 컴퓨팅 서비스와 동일한 이름을 가지고 있지만,

즉, PARAM가 작동하게 덧붙였다.

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 
관련 문제