Search code examples
azureiiswebserverremote-accessnetwork-security-groups

Allow remote web server administration of Azure server core VM


I am trying to configure a server code 2016 VM on Azure to allow access from IIS on a remote server (outside of Azure) - I have been following documentation from here and here.

When I try to connect to the Azure servercore server from IIS (File, Connect to a Server, provide server name/port and credentials), I am getting the following error: "Could not connect to the specified computer. Details: Unable to connect to the remote server"

I have added the firewall rule as noted in the steps I have been following with no success. I believe that this may be a security group issue, but web searching has drawn a blank - I have not been able to find anything on connecting IIS to a VM on Azure in order to allow web server administration.

Any help would be much appreciated, preferably in simple steps - I'm a programmer who has had a devops task dropped on him, and as such have minimal understanding of Azure's mechanics and terminology!

Thanks!


Solution

  • So the error was due to the misconfigured NSG. Need to open up port 8172.