How to prevent unexpected reboot of Azure Virtual Machine

MARIO AGUILAR 0 Reputation points
2023-09-14T22:00:09.8033333+00:00

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.
7,908 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Durkan 12,206 Reputation points MVP
    2023-09-16T09:33:45.7533333+00:00

    Hi

    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:

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/create-data-collector-performance-counters?wt.mc_id=AZ-MVP-5005255

    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:

    https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-manage?wt.mc_id=AZ-MVP-5005255&tabs=azure-portal

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

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/serial-console-overview?wt.mc_id=AZ-MVP-5005255

    Hope this helps,

    Thanks

    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

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.