I'm attempt to upgrade an Azure Web Role running node.js using the Windows Azure PowerShell (December 2012). I've successfully deployed this Web Role once using the PowerShell. According to their instructions, I should be able to execute Publish-AzureServiceProject
to upgrade the project. When attempting to execute that command I receive the following error:
The deployment name 'deploymentName' already exists under service 'serviceName'
I can't find where I can set a deployment name using the PowerShell. I've added a DeploymentName
setting to the deploymentSettings.json
file generated by the PowerShell and tried passing DeploymentName
as a parameter. Am I approaching upgrading the service correctly or is there a parameter that anyone has run across that allows you to set this?
Update (1/16/2013)
As @AvkashChauhan suggested I did a vanilla deployment. I initially published to Staging and then ran Publish-AzureServiceProject and was able to upgrade the project.
The problem is when I promoted that Staging deployment to production using the Swap VIP feature of Azure. After swapping the deployments, I have an empty staging slot without deployment. If I attempt to run Publish-AzureServiceProject to publish to the staging slot again (I did not change any deployment settings in between). The deployment fails with the error message above.
Update (1/22/2013)
I've still yet to find a way around this. I reported an issue on the azure-sdk-tools repo in hopes of getting a response there. You can read more or follow here: https://github.com/WindowsAzure/azure-sdk-tools/issues/892
I'll report back any updates to this question.