I'm building my projects artifact on a team foundation devops server. And in the release definition I want to deploy the artifact with msdeploy, but I'm getting "ERROR_USER_ANAUTHORIZED".
I build the solution with msbuild and use these parameters: /p:Configuration=Release/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation=$(build.artifactstagingdirectory) /p:DeployIisAppPath=$(SiteName)
And in the release step I run this cmd command:
-source:package="$(System.DefaultWorkingDirectory)\PROJECT\s.zip" -dest:auto,ComputerName="https://TARGETHOST:8172/msdeploy.axd?site=SITENAME/client" -verb:sync -allowUntrusted
I've followed this walkthrough: "https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-web-deploy-handler" and given the tfs build user all the priveleges it needs but it just doesn't work.