Setup:
We use a script employing msdeploy to deploy our applications to remote servers. This works fine when we deploy to Server 2008R2 servers with IIS 7.5. However, when trying to utilize this script to deploy to Server 2016 with IIS 10 we always get the following error. I have tested versus several 2016 servers with IIS 10. The account we use to run the command is Administrator on both servers
This is the command utilized:
msdeploy.exe' -verb:sync -source:package="<SourceRedacted>" -dest:auto="<DestRedacted>",wmsvc="<Server.domain>",AuthType='negotiate',includeAcls='False' -setParamFile:<ParamFileRedacted> -allowuntrusted -verbose
Error Code: ERROR_USER_UNAUTHORIZED
More Information: Connected to the remote computer ("<Server.domain>") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials
represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.
Error: The remote server returned an error: (401) Unauthorized.
Interesting to note when explicitly entering the username/password it does work
msdeploy.exe' -verb:sync -source:package="<SourceRedacted>" -dest:auto="<DestRedacted>",wmsvc="<Server.domain>",username='<Admin>',password='<Password>',includeAcls='False' -setParamFile:<ParamFileRedacted> -allowuntrusted -verbose
So obviously something with the 'negotiate' fails, I have tried changing to 'ntlm' but run into the same error.
Logs don't seem to offer me any clue further for resolution, any ideas here?