Restart Alert - Azure Arc Server

Josh Washburn 11 Reputation points
2021-08-10T16:50:58.57+00:00

Goal
Create a server restart alert for all servers in our environment (Azure VMs & Arc servers)

Azure VMs
We can use the Azure Activity Logs to alert on an Azure VM being restarted. One downside of this is that we have 50 Azure subscriptions, so an alert needs to be set up for at least every subscription that has production virtual machines.

Arc Servers
We have enabled VM Insights and are collecting logs in 1 Log Analytics Workspace for all Arc servers.

My question is how can I create an alert that tells us when an Arc server has been restarted? Most of these are on-prem Windows servers.

One article suggests using a Log alert on the (Windows) Event table, but Windows Events are not sent to our Log Analytics Workspace by default.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,306 questions
Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
434 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Josh Washburn 11 Reputation points
    2021-09-09T15:06:18.223+00:00

    Hi @bharathn-msft ,

    Yes, we had to enable the collection of System logs and specifically the information category. Then we created an alert to look for Event ID 1074. This is exactly what we were looking for so that we can be notified when an Azure Arc server is rebooted.

    Thank you!

    Josh

    1 person found this answer helpful.

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.