Alerting on Azure VM Deallocation with Azure Monitor

AZ-305 By islever Editorial Last updated

Short answer

C Use Azure Monitor to create an alert rule based on the Activity log operation name to send an email when a virtual machine is deallocated.

Question

You have an Azure subscription that contains 10 virtual machines. The virtual machines process sensitive user data.
You need to recommend a solution that will email an alert when a virtual machine is deallocated. The solution must minimize administrative effort.
What should you include in the recommendation?
  1. Azure Activity log
  2. Azure Service Health
  3. Azure Monitor Correct Answer
  4. Azure Virtual Machine Scale Sets

Key Takeaways

The question tests the distinction between logging services (Activity Log) and alerting/monitoring services (Azure Monitor); Activity Log captures the data, but Azure Monitor triggers the notification.

This page explains how to design an automated email alerting solution for Azure VM deallocations using Azure Monitor and Activity log operations.

Common mistake: Selecting Azure Activity Log (A) because it records the event. This is incorrect because the Activity Log does not natively send emails; it requires Azure Monitor's alert rules to act on the data.

Expert Analysis

The core requirement is to trigger an email alert upon a specific infrastructure event (VM deallocation) while minimizing administrative overhead. To achieve this, one must distinguish between the data source and the notification mechanism.

Why Option A is the trap: The Azure Activity log records state changes, including 'Deallocated'. However, as noted in the comments, the Activity log itself does not send emails; it is a read-only repository of events. Selecting only the Activity log fails to meet the 'email an alert' requirement.

Why Option C is correct: Azure Monitor is the unified service that ingests logs and metrics from sources like the Activity log. It contains the Alert Rules engine required to evaluate conditions (e.g., 'Operation Name equals Deallocate') and execute Action Groups (which handle the email). By using Azure Monitor, you link the data source to the notification action. This satisfies both the functional need and the constraint of minimizing admin effort, as built-in alerts are straightforward to configure without custom scripting.

Other options: Azure Service Health tracks platform-wide incidents, not user VM states. Virtual Machine Scale Sets are for scaling compute, not monitoring individual VM lifecycle events.

Exam Strategy

Always map the 'action' verb in the scenario (e.g., 'alert', 'notify', 'send email') to the component responsible for execution, not just data collection. If the question asks for a notification mechanism, look for Monitor or Logic Apps rather than just the Log source.

Frequently Asked Questions

Can I use Activity Log alone to send emails?

No. The Activity Log stores historical data but does not have a native feature to send emails. You must use Azure Monitor to define the alert rule and action group.

What is the minimal admin effort approach?

Using Azure Monitor's built-in alert rules triggered by standard Activity Log operations (like 'Deallocate') requires no code, unlike custom Runbooks or Function Apps.

Community Votes

C
100%

100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 1 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 1

  1. ahmadano 👍 1 Answered C
    Azure Activity log: It records the deallocation event, but on its own it doesn’t send notifications. The alerting and email come from Azure Monitor alert rules and action groups.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All AZ-305 Questions

Access 95 questions with complete answers and detailed explanations.

View Full AZ-305 Practice Test →

← Back to AZ-305 Study Guide