You have an Azure subscription that contains 10 virtual machines.
You need to ensure that you receive an email message when any virtual machines are powered off, restarted, or deallocated.
What is the minimum number of rules and action groups that you require?
Click on the arrows to vote for the correct answer
A. B. C. D.C
The correct answer is C. You need three rules and one action group to ensure that you receive an email message when any virtual machines are powered off, restarted, or deallocated.
Here's why:
Azure provides a feature called Azure Monitor, which enables you to monitor and gain visibility into the health and performance of your resources. To use Azure Monitor, you need to create rules and action groups.
A rule specifies the conditions under which an alert should be generated, and an action group specifies the actions that should be taken when an alert is generated.
In this scenario, you need to create a rule that triggers an alert when any virtual machine is powered off, restarted, or deallocated. To do this, you can use the Azure Monitor for VMs feature, which provides built-in rules for these conditions.
You can create a single rule that covers all three conditions. This rule would trigger an alert when any virtual machine is powered off, restarted, or deallocated.
However, to send an email message when an alert is generated, you need to create an action group that specifies an email notification as the action. You can create a single action group that is used by all three rules.
Therefore, the minimum number of rules and action groups that you require is three rules and one action group (option C).