Azure staging web deploy fails with ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP but not for production

后端 未结 2 357
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-18 04:03

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

相关标签:
2条回答
  • 2021-01-18 04:31

    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.

    0 讨论(0)
  • 2021-01-18 04:40

    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%"

    0 讨论(0)
提交回复
热议问题