'Unable to make remote desktop after the scale set creation

I have successfully created a scale set using (https://github.com/Azure/azure-quickstart-templates/tree/master/201-vmss-windows-customimage) with one instance from the my custom image:

The custom image has microsoft server data center DS1 V2 and node.js installed in and a copy of my application.

From the new portal I can see the IP of the VM. I have also successfully started it from the powershell. However the RDP on that IP with port 3389 or 50000, 50001 are not working. I tried to add some inboud rules but the situation is same (may inboud rules not correct).

Please can you let me know the steps required after the scale set is created in order to make a RDP ?



Solution 1:[1]

You won't be able to connect to the IP of the VM from outside the VNET as each VM has an internal IP address. You need to connect to the public IP of the load balancer (you probably meant that implicitly but being precise just in case).

You will also need to create inbound NAT rules to map a port range on the load balancer public IP address to port 3389 on the backend, and double check that RDP was enabled on the source image before uploading it.

Take a look at this template for an example of inbound NAT rules.. https://github.com/Azure/azure-quickstart-templates/blob/master/201-vmss-windows-nat/azuredeploy.json

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 sendmarsh