For those still looking, I had to make sure to:
- Specify port 8172, use the default service name (msdeploy.axd), use https and check the box to allow untrusted certificates in the publish service url from Visual Studio:https://serveraddress:8172/msdeploy.axd
Also, I found this IIS article to be extremely helpful for setting up the service.
When faced with :
Web deployment task failed.(Could not complete the request to remote agent URL 'https://dev1:8172/msdeploy.axd?site=Default web site'.)
Could not complete the request to remote agent URL 'https://dev1:8172/msdeploy.axd?site=Default web site'.
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.The remote certificate is invalid according to the validation procedure.
BUT, because Https means Secure, we need a certificate.
However the IIS is not configured with a certificate, so it fails
You need to check the
"Allow untrusted certificate" checkbox