I have a very simple ASP.NET MVC 4 application and I can publish it easily to my local or inhouse IIS via WebDeploy.
Deployment to Azure Websites works as expected on my local machine and with Visual Studio:
If i do this via command-line I get ERROR_USER_UNAUTHORIZED:
msbuild.exe My.Web.csproj /p:DeployOnBuild=true /p:PublishProfile="azure-web - Web Deploy" /p:Configuration=Release
I can specify a /p:Password=???
parameter, but where can I setup this password? I can only download or reset the publish profile. The publish profile xml has an encrypted password in it and it seems that only Visual Studio is able to read it.
For FTP/Git publishing there is the "deployment user", but I can't use FTP publishing because it is currently not supported from the command-line (this is the exception I got) and this user has nothing to do with web deploy.
Any ideas?
Open Visual Studio and then select Create a new project. In Create a new project, find, and select ASP.NET Web Application (. NET Framework), then select Next. In Configure your new project, name the application MyFirstAzureWebApp, and then select Create.
Found it: The ***.azurewebsites.net.PublishSettings file (which can be downloaded in the management portal) contains the password in clear-text (even if it looks like encrypted).
The inspiration comes from this blog post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With