How to prevent unexpected reboot of Azure Virtual Machine

MARIO AGUILAR 0 Reputation points

My VM has been rebooting unexpextedly and I can't find the reason in order to prevent it

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,921 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Durkan 11,521 Reputation points MVP


    There's a number of things you can do to find what the issue is:

    1. Check the Event logs locally on the VM, they should point to when the VM rebooted and the issues that led up to it. Look for event id 1074.
    2. Set up Performance Monitor and run a data collector set to see of you can establish what the issue is:

    1. Enable Log Analytics on both the VM and also install the Azure Monitor agent on the VM to send data to your Log Analytics Workspace. You can set up alerts based on the data received to show you when the VM is restarting:

    1. Enable Serial Console on the VM to get a view of what is happening:

    Hope this helps,


    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
    0 comments No comments