Hi Team,
We have been receiving error - "ERROR_USER_NOT_AUTHORIZED_FOR_DEPLOYMENTPROVIDER" while executing below command using MSDeploy as Non-admin user (Username : myserviceaccount) in Target server. Same error by-passed when admin access provided to "myserviceaccount" user in Target server.
Typically, reported error should not appear when we declare delegation rules in IIS as mentioned in http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler. But, MSDeploy still requires Admin access to "userName" for complete preSync & postSync MSDeploy commands.
Also, Have followed all directions captured in below blogs to complete the deployment as Non-Admin user. But, no luck favors to us.
1. http://www.jamescrowley.co.uk/2011/09/05/deploying-windows-services-using-msdeploy/
2. https://support.microsoft.com/en-us/kb/2023855
3. http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler
Can you advise us what we are missing here?
MSDeploy Command:
“C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe” -verb:sync -preSync:runCommand=’mypath\Uninstall_Service.cmd’,waitInterval=30000 -source:package=’mypackage.zip’ -dest:manifest=”mypackage.DestinationManifest.xml”,computerName=”https://myserver:8172/MSDeploy.axd?site=Default Web Site”,userName=”myserviceaccount”,password=”#########”,authtype=”Basic”,includeAcls=”False” -setParamFile:”mypackage.SetParameters.xml” -postSync:runCommand=’mypath\Install_Service.cmd’,waitInterval=30000 -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted