Monitoring services in a VM

Masthan reddy 1 Reputation point

Hi Team,

I wanted to monitor the various services like databases running in a VM. I.e Whenever the service goes down ( but VM is running) an alert must be generated automatically.


Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,080 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,253 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alan Kinane 16,591 Reputation points MVP

    For something like this, you can capture the Windows event logs to a Log Analytics workspace and then query this service periodically for particular event IDs that you want to alert on.

    You would have to write your own KQL query depending on your exact requirements. I would reference the articles below to get started:

    0 comments No comments

  2. Andrew Blumhardt 8,261 Reputation points Microsoft Employee

    Change tracking in Azure Automation can track service state more directly. One common service tracking method is to base monitoring rules on the change tacking logs.

    0 comments No comments