Monitoring services in a VM

Masthan reddy 1 Reputation point
2022-04-06T13:34:33.17+00:00

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.

Thanks,
Masthan

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,792 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,107 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alan Kinane 16,786 Reputation points MVP
    2022-04-06T13:48:31.42+00:00

    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:

    https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-sources-windows-events

    https://learn.microsoft.com/en-us/azure/azure-monitor/vm/monitor-virtual-machine-alerts

    0 comments No comments

  2. Andrew Blumhardt 9,491 Reputation points Microsoft Employee
    2022-04-06T14:24:50.923+00:00

    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. https://learn.microsoft.com/en-us/azure/automation/change-tracking/manage-change-tracking

    0 comments No comments