Exam-Answer

Home / Microsoft / AZ-300 / Question 22

Prev Question
Next Question

Question 22

You need to create an alert for a virtual machine named VM1 that will be fired when the VM's CPU utilization is greater than 95 percent for at least 10 minutes. You also need to add an action group named AG1 to this alert.

What should you do? Select correct placeholder values.

az monitor metrics alert PLACEHOLDER 1 -n A1 -g RG1 -- PLACEHOLDER 2 "avg Percentage CPU > 95"

-- PLACEHOLDER 3 10m -- PLACEHOLDER 4 AG1

Answers



A B C D E F G H I J K L

Advertisement

Explanation

You should use the following command:

az monitor metrics alert create -n A1 -g RG1 --condition "avg Percentage CPU > 95"

--window-size 10m --action AG1

You should use the az monitor metrics alert create command to create a metric-based alert rule. The list and show commands list alert rules and show a specific alert rule.

You should use the condition parameter to specify the condition that triggers the rule. The scopes option defines an action group associated with an alert, and the description option provides a free-text description of the rule.

You should use the window-size option to define a time window in which the value of the condition is aggregated. You should not use the evaluation-frequency option to define a time window in which the value of the condition is aggregated. This option is used to define the frequency at which measured values are calculated. The action option defines an action group associated with an alert.

You should use the action option to define an action group associated with the alert. The name option assigns a name to the rule. The condition parameter specifies the condition that triggers the rule.

References

Comments

Load more
Prev Question
Next Question