Azure Monitor is the core observability platform in Azure. It collects, stores, and correlates telemetry so administrators can detect issues, investigate root cause, and automate response.
In AZ-104, Azure Monitor is a foundational topic because it connects several operational capabilities together:
- platform metrics
- activity and resource logs
- Log Analytics investigation
- alerts and Action Groups
- backup, health, and service visibility
The goal is not just to “collect data,” but to route the right signals to the right place and make them useful during real incidents.
- The major Azure Monitor signal types and how they differ
- How telemetry is routed with diagnostic settings and DCRs
- How Log Analytics fits into investigation workflows
- How alerts and insights depend on correct collection design
- Common exam traps and operational mistakes to avoid
- KPI = Key Performance Indicator
- SLO = Service Level Objective
- SLA = Service Level Agreement
- DCR = Data Collection Rule
- AMA = Azure Monitor Agent
- KQL = Kusto Query Language
- MTTR = Mean Time to Recovery
These terms are used in monitoring architecture reviews and incident response.
[Azure resource / VM / service]
|
+--> [Platform metrics] -------> [Metric alerts]
|
+--> [Activity Log] -----------> [Activity log alerts]
|
+--> [Resource logs]
|
v
[Diagnostic settings / DCRs]
| | |
v v v
[Log Analytics] [Storage] [Event Hub]
|
v
[KQL queries / Workbooks / Log alerts]
- numeric time-series data
- optimized for fast threshold alerting
- common examples: CPU percentage, transaction count, latency, availability
Best when you need near-real-time operational monitoring.
- subscription-level control-plane events
- records operations such as create, update, delete, policy action, and service health events
- useful for governance, auditing, and change tracking
- service-specific logs from resource providers
- usually need diagnostic settings to send them to destinations
- useful for detailed behavior, access analysis, and troubleshooting
- VM-level telemetry collected using Azure Monitor Agent (AMA) and Data Collection Rules (DCRs)
- used for guest performance counters, events, and other machine-level insights
Not all telemetry is collected or routed automatically. Configuration matters.
This distinction is a common AZ-104 point.
| Feature | Used for | Typical scenario |
|---|---|---|
| Diagnostic settings | Platform resource logs and export routing | Storage account logs, Key Vault logs, activity exports |
| Data Collection Rules (DCRs) | Guest/agent-based data collection via AMA | VM performance counters, Windows events, syslog |
- PaaS/platform logs → often diagnostic settings
- VM guest data → typically AMA + DCR
Azure Monitor data is often sent to one or more of these targets:
- Log Analytics workspace for KQL investigation and correlation
- Storage account for longer-term archival patterns
- Event Hub for streaming or integration with external tools
- define a baseline collection pattern for important resource types
- centralize investigation data in a manageable workspace strategy
- align retention and cost controls with business and compliance needs
Azure Monitor also powers higher-level experiences such as:
- VM Insights
- Workbooks
- Application and infrastructure dashboards
- Alerting and incident response
These experiences depend on correct data collection. If the data path is missing, the insight view may look empty or incomplete.
Azure Monitor supports several alert types:
- metric alerts for numeric thresholds
- log alerts for KQL-based conditions
- activity log alerts for control-plane change events
Those alerts are then connected to Action Groups for notifications or automation.
Design principle:
An alert without clear ownership or an action path is only noise.
Professional monitoring programs define a full signal lifecycle:
- Collect: metrics, logs, and activity events with clear purpose.
- Detect: alert rules identify conditions tied to service risk.
- Route: Action Groups send incidents to the right owner.
- Respond: runbooks and on-call procedures guide remediation.
- Improve: post-incident tuning improves alert quality and MTTR.
This closes the loop from telemetry to operations outcomes.
For each critical workload, define minimum coverage in four categories:
- Golden signals: latency, traffic, errors, saturation.
- Control-plane change visibility: who changed what and when.
- Dependency visibility: database, network, identity, and external service health.
- Recovery signals: backup status, replication health, and failover readiness.
Without dependency and recovery signals, teams often miss root cause during incidents.
When investigating an incident:
- check metrics for health degradation or saturation
- review Activity Log for recent changes, policy actions, or service events
- query resource logs in Log Analytics for detailed behavior
- correlate timing across these signals before concluding root cause
This avoids jumping to conclusions based on a single data source.
az monitor metrics list-definitions \
--resource <resource-id> \
-o tableaz monitor diagnostic-settings list \
--resource <resource-id> \
-o jsoncaz monitor log-analytics workspace show \
--resource-group <rg> \
--workspace-name <workspace-name> \
-o table- Collect only the telemetry that supports an operational purpose.
- Route important logs to Log Analytics for centralized investigation.
- Standardize diagnostic settings and DCR use across environments.
- Align retention with cost and compliance expectations.
- Build alerting around signals that operators can actually act on.
- Assuming all required logs are collected by default.
- Confusing diagnostic settings with DCR-based guest collection.
- Treating metrics as a full replacement for detailed logs.
- Building alert rules with no clear action routing.
- Ignoring ingestion delays in some log-based workflows.
- Generating too many low-value alerts and training teams to ignore them.
- Azure Monitor combines metrics, logs, alerts, and investigation tools.
- Metrics, Activity Log, resource logs, and guest telemetry are different signal types with different purposes.
- Good observability depends on correct routing, not just turning monitoring “on.”
- Operational maturity comes from being able to correlate signals, not only view them separately.
- Collect only actionable signals tied to operational decisions
- Standardize dimensions/tags for consistent correlation
- Balance verbosity with cost and retention goals
- Correlate platform metrics, logs, and activity events
- Build investigative workflows from alert to root cause
- Ensure critical services emit both health and dependency signals
- Define retention and archive strategy by data class
- Restrict access to sensitive logs with least privilege
- Review monitoring coverage as architecture evolves
| Symptom | Likely cause | Validation step | Fix |
|---|---|---|---|
| Missing logs from resource | Diagnostic settings/DCR not configured correctly | Check data collection configuration | Correct destination and collection rules |
| Alert triggered but no useful context | Poor signal design or sparse dimensions | Review query and alert payload | Enrich telemetry and alert context |
| Monitoring cost spikes | Excessive ingestion or verbose logging | Analyze ingestion by table/resource | Reduce noise and tune collection scope |
| Investigation takes too long | No correlation path between signals | Test incident workflow end-to-end | Add correlated dashboards and query templates |
- Monitoring objectives mapped to service SLOs
- Data collection rules/diagnostic settings standardized
- Alert-to-incident workflow tested and documented
- Retention and cost controls implemented
- Access controls for log data validated
- Coverage review cadence established