AZ-204 Quiz

← Back to Topics

Monitor (1 / 12):

You are managing a set of Azure virtual machines for a high-traffic e-commerce website. To ensure optimal performance, you decide to set up an alert for any VM that experiences high CPU usage. Specifically, you want to be notified if a VM's average CPU usage exceeds 90% over a 5-minute window, and you want this condition to be evaluated every minute. Additionally, when this alert is triggered, a specific action group should be notified. Using the Azure CLI, craft the appropriate az monitor metrics alert create command to achieve this.

az monitor metrics alert create -n alert1 -g {ResourceGroup} --scopes {VirtualMachineID} \
    # Code here
    --description "High CPU"


Exam revision: April 11, 2025