Share via

Unable to connect to the Azure Virtual machine

Shivaji Kaleru 40 Reputation points
2026-01-10T05:21:16.71+00:00

Azure Virtual machine status is showing running but unable to take the RDP

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


2 answers

Sort by: Most helpful
  1. Jilakara Hemalatha 12,755 Reputation points Microsoft External Staff Moderator
    2026-01-12T02:23:43.4933333+00:00

    Hello Shivaji Kaleru,

    Thank you for reporting the issue in Q/A. I understand that you’re facing trouble connecting to your VM. To help resolve this, please try the following steps:

    First, try connecting to the Azure Serial Console from the Azure portal. This allows you to check if the VM itself is accessible even when RDP is not working.

    Reference: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/serial-console-overview

    If RDP still does not work, use Azure Network Watcher – Connection Troubleshoot to test connectivity from another VM or network resource. This helps identify if traffic is being blocked.

    Reference: https://learn.microsoft.com/en-us/azure/network-watcher/connection-troubleshoot-overview

    Check if the Azure VM Agent is running. The VM Agent is required for portal-based operations like Reset RDP, Run Command, or extensions. If the agent is not running, restart the VM or reinstall the agent via Serial Console

    Reference: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows

    Check the VM’s Resource Health in the portal (VM → Help → Resource Health) to see if Azure reports any platform-level issues that might affect connectivity

    Reference: https://learn.microsoft.com/en-us/azure/service-health/overview

    Also, you can also check the Boot Diagnostics to see if the VM has started and booted up successfully.

    Reference: https://learn.microsoft.com/en-us/azure/virtual-machines/boot-diagnostics

    You can reset the RDP configuration on the VM using the Azure portal or command line, which can help restore the necessary settings.

    If from the boot diagnostic where the VM was not booted up. If the VM continues to fail, deallocate the VM and create a new managed disk from a snapshot or backup.

    1. Take a snapshot of the OS disk:
    2. Navigate to Virtual machines >> select your VM>> Disks
      • Click the OS disk name>> Create snapshot>> specify Snapshot name, Resource group, Snapshot type >> Review + create

    Reference the below documentations for the process:

    Create a virtual machine from a snapshot with CLI

    Create a snapshot of a virtual hard disk , Create a VM from a specialized disk

    Create a virtual machine using an existing managed OS disk

    Create a new VM from managed disk if it does not resolve the issue.

    Please proceed with Repair VM steps.

    1. Deallocate the VM >> Detach the Disk and attach to the new VM
    2. Perform the Offline repair operation inside the new VM.
    3. Detach the OS disk from the recovery VM and attach it to the affected VM and start the VM.

    Reference the below documentations for the process:

    Repair a Windows VM by using the Azure Virtual Machine repair commands

    Troubleshoot a Windows VM by attaching the OS disk to a repair VM through the Azure portal

    If the issue still persists, restore the VM using Azure Backup. (if backup available)

    Reference: https://learn.microsoft.com/en-us/azure/backup/about-azure-vm-restore

    https://learn.microsoft.com/en-us/azure/backup/backup-azure-arm-restore-vms

    If above troubleshooting steps haven't resolve the issue. Could you please share the following details to help us investigate further:

    1. When was the last time you successfully logged in via RDP?
    2. Is this a newly created VM or an existing one? When was it created?
    3. What is the VM being used for, and is there any important data stored on it?
    4. What exact error message do you receive when trying to connect via RDP?
    5. Please provide screenshots from the Serial Console and Boot Diagnostics.

    Additionally, could you please check the private message and provide necessary details.

    1 person found this answer helpful.

  2. SUNOJ KUMAR YELURU 18,246 Reputation points MVP Volunteer Moderator
    2026-01-10T07:11:39.1366667+00:00

    Hello @Shivaji Kaleru,

    Thanks for using Q and A forum.

    If your Azure Virtual Machine (VM) status shows as running but you are unable to connect via Remote Desktop Protocol (RDP), there are several troubleshooting steps you can take:

    1. In the Azure portal, select your VM, scroll to the Help section, and click on Reset password. Choose Reset configuration only and click Update. This can help if Remote Connections are disabled or if Windows Firewall rules are blocking RDP.
    2. Ensure that your NSG has an inbound rule that allows RDP traffic on TCP port 3389. You can use the IP flow verify feature to confirm whether any rules are blocking traffic to or from your VM.
    3. Sometimes resetting the NIC can resolve connectivity issues.
    4. Make sure that the Remote Desktop service is running on your VM. If it is not, you may need to enable it through the registry or by using PowerShell commands.

    Troubleshoot Remote Desktop connections to an Azure virtual machine


    If the Answer is helpful, please click Accept Answer and Up-Vote 👍, so that this can be beneficial to other community members.

    1 person found this answer helpful.

Your answer

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