Virtual machine stopped suddenly and is not accessible again even when its status is running.

Anurag Pandey 0 Reputation points
2024-03-04T07:34:25.6266667+00:00

Hi,

I was working in my virtual machine; everything was working fine. Suddenly, it started trying to reconnect even there was no network interruption. I changed the network and also restarted the machine but, i was unable to access my VM.

I also tried to connect from different system but it was worthless. Later, i created a new VM about a week ago. But, today the same issue occurred with this VM also. I am unable to access it even when it is started from the portal.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,044 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,464 questions
Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2024-03-18T18:27:45.7933333+00:00

    Hello, @Anurag Pandey ! It's odd that you've been able to connect to a VM and that stops working after a period of time on multiple VMs. That makes me wonder if the workload is either too much for the VM or if the VM state is becoming compromised (a hung task, for example). There are a lot of troubleshooting options, which I'll list below.

    How do I troubleshoot scenarios where I can't connect to my VM?

    I would second @Wesley Li and also recommend going through the VM troubleshooting guide for RDP connections:

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

    Quick troubleshooting steps After each troubleshooting step, try reconnecting to the VM:

    1. Reset Remote Desktop configuration.
    2. Check Network Security Group rules / Cloud Services endpoints.
    3. Review VM console logs.
    4. Reset the NIC for the VM.
    5. Check the VM Resource Health.
    6. Reset your VM password.
    7. Restart your VM.
    8. Redeploy your VM.

    I would also look at your VM performance and analyze workloads to see if there is something that is causing your VM to hang. If you are still having issues after completing the troubleshooting, let us know in the comments as we may need to take a closer look at your resources.


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    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.