Cannot Connect to Windows Azure VM (Server 2012 R2) Web Deploy Service Cannot Connect to Windows Azure VM (Server 2012 R2) Web Deploy Service azure azure

Cannot Connect to Windows Azure VM (Server 2012 R2) Web Deploy Service


After dealing with this for about an hour now, I figured out how to fix this on my Azure Virtual Machine.

First the obvious

  • Check that port 8172 (if you're using default settings) is open in your firewall
  • Check that the processes MsDepSvc and WMSVC are running.
  • Check that the site name is correct.

Management Service

In ISS, at the root level of the server, check your settings under Management Service.It should have Enable Remote Connections checked:Management Services

Did you download the full package

This was the one that got me, I hadn't installed everything.On the bottom of the WebDeploy page: http://www.iis.net/downloads/microsoft/web-deploy

You can download the full package, and then just install everything.


You don't mention if you have an endpoint configured for your Azure VM. If not, make sure you create an endpoint with a private port of 8172.
EDIT: Here is a troubleshooting guide for web deploy that includes the error message you've encountered. Additionally, from my own experience I have managed to mistype the site name and not install .NET and seeing similar errors.


Helpful but in the end in our case it was TLS mismatch. Check both machines can do TLS 1.2 if you are forcing it. Have put more detail here https://fuseit.zendesk.com/hc/en-us/articles/360000328595. Cheers