I\'m trying automated web site deployment in Azure and I\'m at the phase were I run web deploy commands. The command for production works fine and updates the content but th
I managed to find where the problem was ...
In a settings file created by msdeploy.exe I was using the wrong site name. Sadly the documentation was popping up an error that had nothing to do with the wrong site name but only saying that it can't create that site because of the rights. Which somehow, in a twisted Microsoft like way, makes sense.
Azure expecting that site name will be presented twice - in scm.azurewebsites.net:443/msdeploy.axd?site=%SiteNameHere%" and the same value as a parameter, by default value from file SetParameters.xml is used for second.
You may modify this file or pass parameter to msdeploy directly:
-setParam:name="IIS Web Application Name",value="%SiteNameHere%"