title: TFS 2012 Update 3 Continuous Integration and automatic deployment
body: <p>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.</p>
  
  <p>I have a build definition set up with the following MSBuild arguments:</p>
  
  <pre><code>/p:AllowUntrustedCertificate=true /p:DeployOnBuild=true /p:PublishProfile=[profileName].pubxml
  </code></pre>
  
  <p>I get the ERROR_USER_UNAUTHORIZED message. If I add 
      <code>/p:Password=[passwordHere]</code> 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? </p>
  
  <p>I saw this post: <a href="https://stackoverflow.com/questions/4890289/how-do-i-configure-msbuild-to-use-a-saved-publishprofile-for-webdeploy">How do I configure MSBuild to use a saved publishProfile for WebDeploy?</a> 
  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 <code>/p:AuthType=NTLM</code> 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 <a href="https://stackoverflow.com/questions/8053441/how-do-i-deploy-using-msdeploy-and-teamcity-with-integrated-windows-authenticati">How do I deploy using MSDeploy and TeamCity with Integrated Windows Authentication?</a></p>
  
  <p>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.</p>