Share via

i cannot connect to my vm

Andrew Harrover 0 Reputation points
2026-02-06T16:27:46.6166667+00:00

I cannot connect to my VM. It is running but my RMM shows it offline. The agent status unavailable....

Azure Virtual Machines
Azure Virtual Machines

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

{count} votes

3 answers

Sort by: Most helpful
  1. Nikhil Duserla 9,685 Reputation points Microsoft External Staff Moderator
    2026-02-13T08:19:26.4433333+00:00

    Hello @Andrew Harrover ,

    In some cases, restarting the VM stop → start can resolve VM agent related issues. You may also try resizing the VM and then verifying that it reaches a running state successfully. If the issue persists, proceed with an offline installation of the VM agent. To do this, create a temporary VM, attach the affected VM’s OS disk as a secondary disk, and then follow the troubleshooting steps provided in the documentation below.

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/install-vm-agent-offline#how-to-install-the-vm-agent-in-offline-mode

    Please share the error messages and activity logs in private messages which helps me to troubleshoot the issue more.

    Please let us know if you have any further questions. I’m happy to assist. Thank you!

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Manish Deshpande 4,225 Reputation points Microsoft External Staff Moderator
    2026-02-06T17:18:25.9833333+00:00

    Hello Andrew

    Thank you for contacting us about the VM issue.

    This may be caused due to few reasons

    Azure VM Guest Agent stopped responding or became unhealthy

    • VM was stuck on an underlying host after maintenance
    • Network or agent-level communication issue (agent heartbeat not reaching Azure)
    • Guest Agent corruption after updates or restarts

    When the Azure VM Agent is unavailable, Azure cannot perform management operations (password reset, Run Command, extensions), and connectivity issues such as RDP failure are common.

    Steps to fix the issue

    1.Stop (Deallocate) and Start the VM

    This forces the VM to be moved to a healthy Azure host and often restores agent communication.

    Azure Portal

    1. Go to Virtual Machines
    2. Select the affected VM
    3. Click Stop (wait until status shows Stopped (deallocated))
    4. Click Start
    5. Retry RDP/SSH connection.

    2.Redeploy the VM(This is the most recommended solution.)

    If Stop/Start does not help, Redeploy has consistently fixed this issue in earlier cases.

    What Redeploy Does

    • Moves the VM to a new Azure host
    • Preserves OS disk, data disks, IP, and configuration
    • Does not delete the VM

    Azure Portal

    1. VM → Help + troubleshooting
    2. Select Redeploy
    3. Confirm redeploy
    4. Wait for completion
    5. Start the VM (if not auto‑started)
    6. Retry connection.

    3.Check Boot Diagnostics

    If the VM still cannot be accessed:

    1. VM → Boot diagnostics
    2. Review the screenshot and serial output
    3. Confirm the OS is not stuck on:
      • Recovery screen
        • Disk check
          • Startup repair

    Boot issues can prevent the VM Agent from starting.

    4.Reset RDP Configuration

    Once agent communication is restored:

    1. VM → Help
    2. Select Reset password
    3. Choose Reset configuration only
    4. Update and retry RDP

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

    Thanks,
    Manish.

    0 comments No comments

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.