2011-03-18 17 views
5

Estoy siguiendo el último ejemplo del kit de capacitación Azure de febrero de 2011.Error de implementación de Windows Azure Powershell: "El servidor remoto devolvió una respuesta inesperada"

He desplegado con éxito utilizando

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 

A continuación, ejecuta el siguiente paso -

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 

da este 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 

¿Alguien me puede decir dónde estoy yendo mal?

Se encontró this link detallando el mismo problema que no tiene una resolución.

Respuesta

4

El ejemplo da esta información

Importante: El cmdlet Set-Despliegue asume que el servicio de cómputo y de almacenamiento nombres de servicios son los mismos. Si no es el caso, especifique un parámetro adicional -StorageServicename, reemplazando el marcador de posición con el nombre del nombre del servicio de almacenamiento.

Mi nombre del servicio de almacenamiento tiene el mismo nombre que el servicio de cómputo, pero añadiendo que PARAM hizo trabajar,

decir.

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 
Cuestiones relacionadas