セールス: 1-800-867-1380

 none
Subscription ID Error Prevents Powershell Deployment of Azure Service

    質問

  • I've been following this tutorial: Powershell Deployment Tutorial but I am unable to successfully deploy to an existing Hosted Service. I get the following errors (see below). I've checked and rechecked the subscription ID, service name, etc. The fact that it believes that I'm anonymous tells me the issue may be with the cert, but I have checked and double checked. If I enter each parameter line by line into the console, I get this message using the get-item cert:\CurrentUser\MY command: 

    Update-Deployment : Cannot bind parameter 'Certificate'. Cannot convert value "(get-item 
    cert:\CurrentUser\MY\054EA8E323B19115CAF37FCC368915F31EE3E552)" to type 
    "System.Security.Cryptography.X509Certificates.X509Certificate2". Error: "The given path's 
    format is not supported." 

    Anyone know why I would not be able to authenticate using the examples in that tutorial? Here are the error messages I get running Update-Deployment and passing params to it.

    Update-Deployment : Communication could not be established. This could be due to an invalid 
    subscription ID. Note that subscription IDs are case sensitive.
    At C:\goserverdeploymenttest.ps1:1 char:1
    + Update-Deployment -serviceName <REDACTED> -SubscriptionId <REDACTED>
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Update-Deployment], Exception
        + FullyQualifiedErrorId : Microsoft.WindowsAzure.Samples.ManagementTools.PowerShell.Serv 
       ices.HostedServices.UpdateDeploymentCommand

    Update-Deployment : The HTTP request was forbidden with client authentication scheme 
    'Anonymous'.
    At C:\goserverdeploymenttest.ps1:1 char:1
    + Update-Deployment -serviceName caagotest001 -SubscriptionId 43e42d53-f620-43e7-a ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : CloseError: (:) [Update-Deployment], MessageSecurityException
        + FullyQualifiedErrorId : Microsoft.WindowsAzure.Samples.ManagementTools.PowerShell.Serv 
       ices.HostedServices.UpdateDeploymentCommand

    EDIT: Made the question more clear.
    2012年4月17日 0:28

回答

すべての返信