Exam Notes
Azure Monitor Agent (AMA) is the unified agent replacing Log Analytics agent (MMA/OMS) and Diagnostics extension. Use Data Collection Rules (DCRs) to configure what data to collect and where to send it.
Monitoring & Logging
Azure Monitor provides a comprehensive solution for collecting, analyzing, and acting on telemetry from cloud and on-premises environments. It enables full-stack observability across applications, infrastructure, and networks.
Azure Monitor collects data from multiple tiers of your application architecture. Understanding data sources is critical for designing comprehensive monitoring solutions.
speed Metrics
Numerical values collected at regular intervals describing system performance.
description Logs
Structured or unstructured event data with timestamps and properties.
| Tier | Data Sources | Collection Method |
|---|---|---|
| Application | Performance, requests, exceptions, traces | Application Insights SDK, auto-instrumentation |
| Guest OS | Performance counters, event logs, syslog | Azure Monitor Agent (AMA) |
| Azure Resources | Platform metrics, resource logs | Automatic + diagnostic settings |
| Subscription | Activity log, Service Health | Automatic |
| Tenant | Entra ID logs, audit events | Diagnostic settings to Log Analytics |
| Custom Sources | Any REST client, on-premises | Data Collector API, Azure Arc |
Log Analytics workspace is the primary destination for log data in Azure Monitor. It provides a unified data store for querying and analyzing logs using Kusto Query Language (KQL).
Single Workspace
Centralized approach - simpler management and cross-resource queries.
Multiple Workspaces
Distributed approach - when isolation or specific requirements exist.
Workspace-context
Access to all data in the workspace based on RBAC roles.
Resource-context
Access to logs for specific Azure resources you have RBAC access to.
Table-level RBAC
Granular access to specific tables within a workspace.
| Tier | Retention | Query Latency | Cost |
|---|---|---|---|
| Analytics (Interactive) | 30 days free, up to 730 days | Immediate | Standard ingestion + retention |
| Basic Logs | 8 days | Immediate | Reduced ingestion (limited queries) |
| Archive | Up to 12 years | Search job required | Low storage, pay per search |
Azure Workbooks provide a flexible canvas for data analysis and creating rich visual reports. Azure Insights are pre-built monitoring experiences for specific services.
Data Sources
Visualization Types
Key Features
Workbooks vs Dashboards
| Feature | Workbooks | Dashboards |
|---|---|---|
| Rich text | Yes | No |
| Parameters | Yes | Limited |
| Flexible layout | Yes | Grid-based |
| Real-time refresh | On demand | Auto |
Application Insights
APM for web applications
VM Insights
VM performance & dependencies
Container Insights
AKS & container monitoring
Network Insights
Network health & topology
SQL Insights
Azure SQL monitoring
Storage Insights
Storage accounts health
Key Vault Insights
Vault operations & access
Backup Insights
Backup jobs & health
Azure Data Explorer (ADX) is a fast, fully managed data analytics service for real-time analysis on large volumes of data. It uses the same KQL as Log Analytics but is designed for high-scale, long-term analytics scenarios.
When to Use ADX
ADX vs Log Analytics
| Aspect | Log Analytics | ADX |
|---|---|---|
| Primary use | Ops monitoring | Big data analytics |
| Scale | Workspace limits | Petabyte scale |
| Retention | Up to 12 years | Unlimited |
| Management | Fully managed | Cluster management |
| Cost model | Per GB ingested | Compute + storage |
Cross-query
Query Log Analytics from ADX using the adx() function, or query ADX from Log Analytics using adx cluster proxy.
Data Export
Configure continuous export from Log Analytics to ADX for long-term retention and advanced analytics.
ADX as External Table
Reference ADX tables from Log Analytics queries for hybrid analysis across both platforms.
Azure Monitor alerts proactively notify you of critical conditions and can trigger automated responses.
Metric Alerts
Log Alerts
Activity Log Alerts
Notification Types
Action Types
Workspace Strategy
Start with single workspace per region. Split only for specific requirements like compliance or billing isolation.
Cost Optimization
Use Basic Logs for high-volume, low-value data. Configure appropriate retention and archive for long-term storage.
Use Azure Monitor Agent
Migrate from legacy agents to AMA. Use Data Collection Rules for flexible, centralized configuration.
Application Insights
Enable Application Insights for all web applications. Use workspace-based mode for unified log queries.
Alert Design
Use dynamic thresholds for baseline-aware alerting. Implement action groups with escalation paths.
Governance
Use Azure Policy to enforce diagnostic settings. Ensure all resources send logs to appropriate workspaces.
| Component | Purpose | Key Points |
|---|---|---|
| Azure Monitor | Unified monitoring platform | Collects metrics & logs, alerts, insights |
| Log Analytics | Log storage & query engine | KQL queries, workspace-based, retention policies |
| Azure Monitor Agent | Data collection agent | Replaces MMA/OMS, uses Data Collection Rules |
| Application Insights | APM solution | Requests, dependencies, exceptions, traces |
| Workbooks | Interactive reports | KQL + metrics + ARM + parameters |
| Azure Data Explorer | Big data analytics | Petabyte scale, long retention, ML capabilities |
| Action Groups | Alert response | Notifications + automation actions |