Unable to connect to VM

Manju 70 Reputation points
2023-05-06T10:59:11.2866667+00:00

Hi,

all of a sudden, I am unable to connect to my Azure VM.

Tried to troubleshoot from the Azure's Diagnose and solve problems.

The diagnose tool says "This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes."

However on the VMs page, I see the state is 'Running', Can someone assist with this please.

Thanks.

Manju

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,129 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Patchfox 3,621 Reputation points
    2023-05-06T15:57:42.67+00:00

    Hi Manju, I want to help you with this question.

    You are able to check the latest event logs of the VM? It could get you more information on why the VM is rebooting.

    If this doesn't help you, please check the installed updates or extensions and disable them one by one to find out which will cause an eventual problem.

    If all of these approaches solve your problem, I would recommend contacting the official Azure Support to verify there is no problem on their side (maybe in ARM)


    If the reply was helpful, please don’t forget to upvote or accept it as an answer, thank you.

    0 comments No comments

  2. vipullag-MSFT 24,111 Reputation points Microsoft Employee
    2023-05-09T04:36:37.8533333+00:00

    Hello Manju

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Adding more troubleshooting steps to the above response from Patchfox.

    Based on the issue description, your Azure VM is running but you are unable to connect to it. The diagnose tool indicates that the VM is rebooting as requested by an authorized user or process. However, you see the state of the VM as 'Running' on the VMs page.

    If the Azure diagnose tool is indicating that your virtual machine is rebooting as requested by an authorized user or process, it's likely that someone with access to your Azure account or the virtual machine itself initiated the reboot.

    Please note that few times, the VM state shown on the VMs page might not reflect the current status of the VM. This could be due to a delay in the Azure portal updating the state of the VM.

    To troubleshoot this issue, try the below steps and see if that helps:

    Check Azure VM health:

    • Ensure Azure VM provisioning state is 'Running': If the VM provisioning state is in the Stopped/Deallocated/Updating state, then it will interfere with the connection to the VM. Open Azure portal > VM > Overview and check the VM status to ensure it's Running and retry the connection to the VM.
    • Review pending OS updates or reboots: Ensure there are no pending OS updates or pending reboots on the VM.

    Check Azure VM Guest Agent service health:

    • To check the Azure VM Guest Agent service health, you can go to the Azure portal > VM > Extensions and check if the Azure VM Guest Agent extension is installed and running. If it's not installed, you can install it from the same page. If it's installed but not running, you can try restarting the extension from the same page.

    If you are still unable to connect to the VM after performing these steps, you can try restarting the VM from the Azure portal. Try to Stop and Start the VM. If the issue persists, you can try redeploying the VM to a new host server.
    Ref: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/redeploy-to-new-node-linux

    Hope this helps.

    If you need further help on this, tag me in a comment to help opening a Azure Support case.

    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.

    0 comments No comments