VMSS HealthCheck - Alert on VMSS instance health state

Anna Shen 0 Reputation points Microsoft Employee
2024-08-13T11:44:18.93+00:00

HI,

I have configured Health Check on my VMSS, and enabled automatic OS upgrade. I found one of the VM failed the health check probably after OS upgrade or deployment. I am looking for a way to be able to query this VM instance Health state, so that I can set up alert via email. This is what I have done:

  • I have enabled VMSS insights and linked to Log Analytics workspace.
  • I have created diagnostic setting to collect all Activity logs under this subscription to send to another Log Analytics workspace.

I found there are plenty logs and metrics in Log Analytics workspace, and I want to know which metric should I use to setup alert rule query? What if I also want to monitor VM instance Status and VM instance Provisioning state?Image

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,256 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
395 questions
{count} votes

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.