How to Send Email When Azure VM CPU Exceeds 80% for 10 Minutes
Exhibit
Azure Monitor alert rule - Signal type: Metric - Resource: vm-prod-01 - Condition: Percentage CPU > 80 - Condition window: 10 minutes - Current action group: None - Notification requirement: Email the operations team
Based on the exhibit, what should the administrator configure so the operations team receives an email when the VM's average CPU stays above 80% for 10 minutes?
Quick Answer
The answer is to create an action group and attach it to the metric alert rule. This is correct because an action group is the Azure component that defines the notification channel—such as email, SMS, or webhook—while the metric alert rule monitors the specific condition, like when the Azure VM’s average CPU exceeds 80% for 10 minutes. Without an action group attached, the alert rule can fire but has no destination for the notification, so the operations team would never receive the email. On the AZ-104 exam, this scenario tests your understanding of the separation between alert logic and notification delivery; a common trap is to think the alert rule itself sends email, but it only triggers the action group. Remember the mnemonic: “Alert fires, Action delivers”—the rule watches the metric, the group sends the message.
⚠ Common exam trap
Test-takers frequently confuse diagnostic settings (which send data to a destination) with alert rules (which evaluate conditions and trigger notifications), leading them to pick Option A even though it does not include the action group needed for email delivery.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Create an action group and attach it to the metric alert rule.
To send an email when a metric threshold is breached, you must first create an action group that defines the notification action (e.g., email, SMS). Then, when configuring the metric alert rule for 'Percentage CPU' with a condition of 'greater than 80%' for 10 minutes, you attach that action group to the alert rule. This ensures that when the alert fires, the defined email notification is sent to the operations team.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a diagnostic setting on the VM and send platform logs to Log Analytics.
Why it's wrong here
Diagnostic settings send telemetry to destinations, but they do not directly notify users when a threshold is crossed.
When this WOULD be correct
This would be correct if the question asked: 'What should the administrator configure to collect and analyze VM performance metrics over time?' or 'What is needed to enable advanced querying of VM metrics in Azure Monitor?'
- ✓
Create an action group and attach it to the metric alert rule.
Why this is correct
An action group is the Azure Monitor component that delivers notifications or runs automation when an alert fires. The metric alert already defines the CPU condition, so the missing piece is the action group to email the operations team. Once linked, the alert can evaluate continuously and send the required notification whenever the threshold is met.
- ✗
Assign a Reader role to the operations team on the VM resource.
Why it's wrong here
Reader access allows viewing the VM, but it does not create alert notifications or send email when CPU rises.
When this WOULD be correct
If the question asked 'What should the administrator configure so the operations team can view the VM's CPU metrics in the Azure portal?' then assigning a Reader role would be correct.
- ✗
Enable a resource lock on the VM to prevent CPU spikes.
Why it's wrong here
Locks help prevent management changes, but they do not monitor performance or generate alert notifications.
When this WOULD be correct
A question asks: 'An administrator needs to prevent accidental deletion of a critical production VM. What should they configure?' In that case, enabling a resource lock (e.g., CanNotDelete) would be correct.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓Create an action group and attach it to the metric alert rule.Correct answer▾
Why this is correct
An action group is the Azure Monitor component that delivers notifications or runs automation when an alert fires. The metric alert already defines the CPU condition, so the missing piece is the action group to email the operations team. Once linked, the alert can evaluate continuously and send the required notification whenever the threshold is met.
✗Create a diagnostic setting on the VM and send platform logs to Log Analytics.Wrong answer — click to see why▾
Why this is wrong here
This option does not configure email notification for the alert. Diagnostic settings send logs to Log Analytics for analysis, but they do not trigger email alerts when CPU exceeds a threshold.
★ When this WOULD be the correct answer
This would be correct if the question asked: 'What should the administrator configure to collect and analyze VM performance metrics over time?' or 'What is needed to enable advanced querying of VM metrics in Azure Monitor?'
Why candidates choose this
Candidates may confuse diagnostic settings with alert rules, thinking that sending logs to Log Analytics automatically enables alerting, or they may believe that platform logs include metric alerts.
✗Assign a Reader role to the operations team on the VM resource.Wrong answer — click to see why▾
Why this is wrong here
Assigning a Reader role allows the operations team to view VM metrics but does not enable email notifications for CPU threshold alerts.
★ When this WOULD be the correct answer
If the question asked 'What should the administrator configure so the operations team can view the VM's CPU metrics in the Azure portal?' then assigning a Reader role would be correct.
Why candidates choose this
Candidates may confuse permissions (who can see alerts) with alerting actions (who gets notified), assuming that granting read access also enables email delivery.
✗Enable a resource lock on the VM to prevent CPU spikes.Wrong answer — click to see why▾
Why this is wrong here
Resource locks prevent accidental deletion or modification of a resource, not CPU spikes. They do not trigger email notifications based on performance metrics.
★ When this WOULD be the correct answer
A question asks: 'An administrator needs to prevent accidental deletion of a critical production VM. What should they configure?' In that case, enabling a resource lock (e.g., CanNotDelete) would be correct.
Why candidates choose this
Candidates may confuse 'lock' with 'alert' or think a lock can somehow block performance issues, misunderstanding the purpose of resource locks.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Go deeper
Related to this question
Learn chapter
Azure Alerts and Action Groups
Key term
Action group
An Action group is a collection of notification and automation settings that defines how an Azure Monitor alert responds when triggered, such as who gets emailed, which phone numbers get called, or which automated tasks run.
Key term
Alert rule
An alert rule is a set of conditions and actions that trigger a notification when a monitored metric or log reaches a predefined threshold.
About these practice questions
One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
3 more ways this is tested on AZ-104
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Based on the exhibit, what should the administrator deploy to monitor CPU and free disk space on a small set of VMs while keeping telemetry cost low?
easy- ✓ A.Deploy Azure Monitor Agent and collect only the required performance counters with a data collection rule.
- B.Enable diagnostic settings on each VM and send all guest logs to a storage account.
- C.Install Application Insights on each VM and enable request tracing.
- D.Create a resource lock on each VM to preserve the current state.
Why A: Azure Monitor Agent (AMA) is the modern, cost-effective agent for collecting performance counters like CPU and free disk space from VMs. By using a Data Collection Rule (DCR) to specify only the required counters, the administrator minimizes data ingestion volume, directly controlling telemetry costs. This approach avoids the overhead of sending all guest logs or using more expensive monitoring tools.
Variation 2. Based on the exhibit, what should the administrator add to send an email and SMS notification?
easy- ✓ A.An action group with email and SMS receivers.
- B.A Log Analytics workspace connected to the virtual machine.
- C.A backup recovery point for the virtual machine.
- D.A private endpoint for the virtual machine.
Why A: To send email and SMS notifications from an Azure Monitor alert, you must configure an action group. An action group defines the notification channels (e.g., email, SMS, webhook) and their respective receivers. When the alert rule triggers, Azure Monitor invokes the action group to deliver the notifications. Without an action group, the alert rule has no mechanism to send email or SMS.
Variation 3. You need an alert that emails administrators when CPU on VM-DB01 exceeds a threshold. Which two Azure Monitor components work together to achieve this?
medium- ✓ A.A metric alert and an action group
- B.A budget alert and a private DNS zone
- C.A Recovery Services vault and a route table
- D.An activity log export and a lock
Why A: A metric alert monitors a specific performance metric (like CPU percentage) on a target resource (VM-DB01) and triggers when the value crosses a defined threshold. An action group defines the notification actions (e.g., sending an email to administrators) that execute when the alert fires. Together, they form the core alerting workflow in Azure Monitor: the metric alert evaluates the condition, and the action group delivers the response.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.