I'm hoping someone can help me with putting me in the right direction for setting up automatic deployment from my tfs server to my web server.
I have a build definition set up with the following MSBuild arguments:
/p:AllowUntrustedCertificate=true /p:DeployOnBuild=true /p:PublishProfile=[profileName].pubxml
I get the ERROR_USER_UNAUTHORIZED message. If I add
/p:Password=[passwordHere]
for the password of the account in the publishprofile
then it deploys succesfully. Is there a way I can do this so I don't have the password in the build definition?
I saw this post: How do I configure MSBuild to use a saved publishProfile for WebDeploy?
which looks like it can be done, however it's not clear to me how so. If i can somehow use Windows Authentication that would be nice instead of Basic. I have tried adding the /p:AuthType=NTLM
but this doesn't seem to do anything. I've tried passing an empty username as some have suggested, but that does not work either. Tried following this as well How do I deploy using MSDeploy and TeamCity with Integrated Windows Authentication?
The destination Web Server is Server 2012 IIS 8 and TFS/Build Server is running Win 2008 SP2 with TFS 2012 Update 3 and both have web deploy v3.5 installed.