Wednesday, 8 October 2014

Publish-AzureServiceProject - ConflictError: The specified DNS name is already taken

I think I might have posted this before but when using the Azure Powershell Cmdlets, when deploying a new project, you might see this error.

It occurs because every cloud service on Azure is given the DNS name and since this is the same for all users, your cloud service name must be globally unique on Azure.

In my case, a test project was simply called PHPAzureTest, clearly something that someone else has used. You will need to rename the project in the ServiceDefinition.csdef and ServiceConfiguration.Cloud.cscfg (but you don't need to rename the directory that the project is in) and then try again....
Post a Comment