Subscription ID Error Prevents Powershell Deployment of Azure Service
-
17. dubna 2012 0:28
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
EDIT: Made the question more clear.
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- Upravený Douglas Gorman 17. dubna 2012 0:29
Všechny reakce
-
17. dubna 2012 1:40
Turns out I was using a Remote Desktop cert when I should have been using a Management cert. This article (despite the broken images) was helpful in determining what the issue was.- Označen jako odpověď Arwind - MSFTModerator 23. dubna 2012 6:08
-
17. dubna 2012 9:16ModerátorNice solution.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework