Azure VM RDP connection problem

Fisher, John 45 Reputation points
2023-05-24T15:22:50.8866667+00:00

I cannot RDP into my Azure VM ("Remote Desktop can't connect to the remote computer..."). I have added an inbound rule on my security group for RDP with source as Any or using My IP Address.

I also ran the "comprehensive RDP connectivity test” from Azure Connect section, and it says all is good, except that my company firewall may be blocking the RDP connection to this VM.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jackson Martins 10,606 Reputation points MVP Volunteer Moderator
    2023-05-24T15:34:39.0133333+00:00

    Hi Fisher John

    Make sure there is no blocking inside the VM like Windows Firewall or some antivirus

    To make sure it's not a NSG entry rule, do the tests below:

    Network Watcher's IP flow verify or Next hop capability can help you understand if a rule is blocking your traffic.

    User's image

    It is possible to have more than one NSG, at the NIC level and at the subnet level

    In Network Watcher, access the effective security rules, find out if you have more than one associated NSG:

    User's image

    Bellow the official documentation to troubleshooting RDP Connections:

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-connection

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--


1 additional answer

Sort by: Most helpful
  1. Fisher, John 45 Reputation points
    2023-05-24T16:23:19.6266667+00:00

    Thanks for the help. I checked my inbound rules on my NSG (only one) and it appears to be setup correctly. In the Connection section of the VM, I clicked the "Test Network security groups" link, but it does not seem to recognize the rule exists. Still get "access denied" due to DefaultRule_DenyAllInbound.

    I also reset the VM configuration, reset the NIC card with a static IP and tried IP Flow Verify, which also said access was denied due to the DenyAllInbound.

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.