why alert rule is not fired though condition is true for given vm

Shwetali Shinde 1 Reputation point

I am having vm rule for stop the vm when cpu usage < 2 % for and hour. so if vm is having cpu usage below givn condition the alret rule should fire and trigger the vm stop command but for few vms its not working and vms are running with cpu <2 .

Please check and guide for same. Please let me know any more information required from my side.

Thanks ,


Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,072 questions
{count} votes

1 answer

Sort by: Most helpful
  1. dashanan13 930 Reputation points

    Hei @Shwetali Shinde ,

    Thanks for contacting Microsoft community.

    I am assuming that you are using "Auto shutdown" feature of Azure VM, If yes then make sure that you have selected "Send notification before auto-shutdown?" and given your email to get notified.

    If there is an email but the machine does not shutdown, then we may have a OS related case.

    Do you have notification email from "Auto shutdown" but VM does not shut down?

    If there is NO email then the machine is not going below 2% range, the reason is because the metric that you see in "Performance and Utilization" are derived from the same API that supplies the stats to the "Auto shutdown" and this API is common to all of Azure VMs.

    As long as there is no notification of VM agent not working or VM is not ready etc, these should work as expected.

    Do you have any notifications on the overview page of the VM?

    This again lead to issue with the Virtual machine, in case of such notifications, you may need to repair the VM etc.

    Please mark this as answer if it helped