unable to log into azure vm

Medicus IT 0 Reputation points
2025-05-08T23:04:49.4666667+00:00

I am unable to log into server. RDP doesn't work. Server has been rebooted multiple times. I can ping it but can't access it.

Windows for business | Windows Server | User experience | Accessibility
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daphne Huynh (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator
    2025-07-21T06:51:39.2466667+00:00

    Welcome to the Microsoft Q&A Platform and thank you for posting your question!

    Based on your description, I would like to provide some guidance to help you troubleshoot the Remote Desktop (RDP) connectivity issue you are experiencing with your Azure virtual machine (VM).

    If your VM is running and reachable (e.g., you can ping it), but you are unable to connect via RDP, please kindly following these steps below:

    1. Test RDP Port Connectivity

    On your local machine, use PowerShell to check whether TCP port 3389 is open to your VM:

    Test-NetConnection <VM IP or DNS> -Port 3389

    • If TcpTestSucceeded : True – The port is open, which means the issue may be related to the RDP service or authentication settings.
    • If TcpTestSucceeded : False – The port is blocked. You should check:
      • Network Security Group (NSG) rules
        • Windows Firewall settings on the VM
          • Public IP address configuration

    2. Use Azure Run Command to Repair RDP

    In the Azure Portal:

    1. Navigate to your virtual machine.
    2. Select Run command from the menu.
    3. Execute the following scripts:

    SetRDPPort – Resets the Remote Desktop port configuration.

    ResetRDPCert – Restores the default RDP authentication settings.

    These steps should help restore your RDP access. If you continue to experience issues, feel free to provide more details so I can assist further.

    I hope this information can help you to finish it successfully. Wish you have a pleasant day!

    0 comments No comments

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.