An Azure service that is used to provision Windows and Linux virtual machines.
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.
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.
- Take a snapshot of the OS disk:
- 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.
- Deallocate the VM >> Detach the Disk and attach to the new VM
- Perform the Offline repair operation inside the new VM.
- 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:
- When was the last time you successfully logged in via RDP?
- Is this a newly created VM or an existing one? When was it created?
- What is the VM being used for, and is there any important data stored on it?
- What exact error message do you receive when trying to connect via RDP?
- Please provide screenshots from the Serial Console and Boot Diagnostics.
Additionally, could you please check the private message and provide necessary details.