Failed to start Set-AzureDeployment

I am trying to run my .net website for deployment in azure as part of the TFS build process. I am writing a powershell script to do this, but I am stuck in the set-AzureDeployment -Upgrade . I'm not sure if there is an easier way, but I'm trying to implement code-based downloads from the azure windows site: http://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/# step4

When I run the following:

 Set-AzureDeployment -Upgrade -SERVICENAME "MYSVC" -Mode Auto -Package D:\MYSVC\Drops\Azure.cspkg -configuration D:\MYSVC\Drops\ServiceConfiguration.Cloud.cscfg -Slot Staging -Force 

I get this error:

 Set-AzureDeployment : The path variable 'SERVICENAME' in the UriTemplate must be bound to a non-empty string value. Parameter name: parameters At line:1 char:20 + Set-AzureDeployment <<<< -Upgrade -SERVICENAME "MYSVC" -Mode Auto -Package D:\MYSVC\Drops\Azure.cspkg -Configuration D:\MYSVC\Drops\ServiceConfiguration.Cloud.cscfg -Slot Staging -Force + CategoryInfo : CloseError: (:) [Set-AzureDeployment], ArgumentException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagement.HostedServices.SetAzureDeploymentCommand 

I checked all the parementers and they are all true as far as I can tell (servicename that I work with when I call Get-AzureDeployment -ServiceName MYSVC ). What am I doing wrong?

+4
source share
1 answer

I was able to see the same problem, and after some discussion, I found that with this command there is some problem with the code, therefore, when the correct error is not reported.

In fact, the problem is that when you call Set-AzureDeployment, it cannot use the Windows Azure Storage account to temporarily load your package and fail with some strange error.

To solve this problem, please install a valid Windows Azure account, first call Set-AzureSubscription, and then use the same Set-AzureDeployment command.

+5
source

All Articles