Cannot connect to my VM

VM_azure user 1 Reputation point
2022-08-22T01:20:30.607+00:00

Hello,

I have a windows virtual machine, it is working fine however, two days ago I cannot connect to my VM using RDP.

I already followed all the suggested solutions that I found such as:
restarting the VM, resetting NIC, resetting RDP configuration, adding inbound rule of RDP port, ......etc

However, the problem is not solved and the message that shown below 233218-connection-problem-2.jpg

Also, I check the firewall setting of my computer to make sure that the Remote desktop app is allowed

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,196 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,178 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,375 questions
{count} votes

10 answers

Sort by: Most helpful
  1. Andreas Baumgarten 97,566 Reputation points MVP
    2022-08-23T22:02:03.863+00:00

    Hi @VM_azure user ,

    please run the following command via Azure Portal -> VM -> Run Command Script

    netstat -anb | findstr ":3389"  
    

    The result should look like this:

    234206-image.png

    If you don't see the "listening on 3389" you can check if the Remote Desktop Service is running on the VM the same way with get-service | findstr "TermService":

    234215-image.png

    Do you have more the one NSG associated? NSG could be associated with the VM and with the subnet of the vNet the VM is connected to:

    234232-image.png

    If you trying to connect via Internet to the VM the only option is to use the public IP address of the VM. The private IP isn't available via Internet.

    234197-image.png

    Last but not least you could try the Connection troubleshoot:

    234216-image.png

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. VM_azure user 1 Reputation point
    2022-08-24T00:02:11.36+00:00

    Hi @Andreas Baumgarten

    1- I run the command and the output is exactly same your output that shown on the above screenshot.

    2- For the second command " get-service | findstr "TermService" , also give same as your output (running )

    3- I have only one NSG

    4- Yes, I am trying to connect using public IP address.

    5- I test the connection and also the output is " Network connectivity allowed "

    The VM is still not working

    Thank you for your time and suggested soultions

    0 comments No comments

  3. Amol Shelar 421 Reputation points
    2022-08-24T18:30:51.547+00:00

    @VM_azure user ,

    If the issue is still there, please use Diagnose And Solve Problems >> Cannot Connect to VM >> Cannot RDP once & share the result.

    -Please mark it as Answer if it helps to resolve your query-

    _AmolShelar

    0 comments No comments

  4. VM_azure user 1 Reputation point
    2022-08-25T00:44:22.657+00:00

    @Amol Shelar

    Diagnose And Solve Problems >> Cannot Connect to VM >> Cannot RDP :

    The results is
    "This check completed without reporting any problems"

    0 comments No comments

  5. DougJohnson-1836 1 Reputation point
    2022-08-25T01:08:43.22+00:00

    Can you check your host and network firewalls where your computer is and verify 3389 isn't blocked going outbound?

    0 comments No comments