How to use msdeploy and target a specific site?

msdeploy

Solution

If you use Web Deploy Tool 2.0 you can use IIS Manager UI to enable non-admin users to deploy website:

- Start IIS Manager

- Right-click the site you want to publish to, click Deploy and then click “Configure Web Deploy Publishing...”

When you click Setup button Web Deploy grants necessary permissions to selected user. You can discard generated file.

See Announcing Web Deploy 2.0 Refresh!

Problem

When using msdeploy and the msdeploy.axd handler any attempts to deploy to my remote server is met with a 401 not authorized error and the server logs IISWMSVC_AUTHORIZATION_SERVER_NOT_ALLOWED Only Windows Administrators are allowed to connect using a server connection. Other users should use the 'Connect To Site or Application' task to be able to connect. Process:WMSvc What is the correct way to target the axd for the site level?

Original source