Azure VM Remote Desktop Can't Connect

just wanted to share what worked for me.

After receiving an error prompt:

Connect is disabled for this virtual machine because of the following issues: Network interface 'vmwindows1094': Network security group 'VMWindows10-nsg' does not have inbound security rule that allows port 3389. VMWindows10-nsg

I have added an inbound port rule. Under VM > Settings > Add inbound port rules.

Port: 3389 Protocol/Source/Destination: Any (this can be configured based on your security rules) Action: Allow


On the Azure portal, Select your VM -> Settings -> Boot diagnostics. Make sure that you can see the login screen. You might need to enable diagnostics (under Monitoring section) if not enabled already. If you don't see the login screen, trying the 'Redeploy' option under 'Support and Troubleshooting' section of settings.

If you can see that the machines has booted correctly, the connectivity issue might be because of a firewall at your end or on the VM. See if you can ping the machine. If you are behind a corporate firewall, try connecting from elsewhere and check your PC's firewall.

Creating a new Virtual Machine on the new portal now creates a NSG (Network Security Group) along with the VM. You should be able to find it under all resources, same name as you VM. Make sure that there is an Inbound rule configured for Remote desktop (it is created by default but might be worth checking).

Tags:

Azure