D5 · Monitoring

Azure Monitor

Azure Monitor is Azure's centralized observability platform. The AZ-104 exam evaluates Monitor's architecture, how to configure data collection and the available analysis and action tools.

What is Azure Monitor

is Azure's unified monitoring service. It collects, analyzes and acts on telemetry data from resources in Azure, and other clouds. It provides a single platform for metrics, logs, alerts and visualization.

Collect

  • •Platform metrics (automatic)
  • •Activity logs (automatic)
  • •Diagnostic logs (configurable)
  • •Guest OS metrics (agent)
  • •Application traces (Application Insights)

Analyze

  • •Metrics Explorer — metric charts
  • •Log Analytics — KQL over logs
  • •Application Insights — app analysis
  • •Workbooks — interactive reports
  • •Insights — per-service views (VM, container, network)

Act

  • •Alert Rules — alerts on metrics and logs
  • •Action Groups — notifications and automated actions
  • •Autoscale — scale resources automatically
  • •ITSM connectors — integration with ServiceNow, etc.

Architecture and data sources

Data types in Azure Monitor

Metrics

Time series of numeric values. Collected every 1 minute. Stored for 93 days. Lightweight and fast for near real-time alerts.

Logs

Structured or semi-structured records. Stored in a . Allow complex KQL queries. Include Activity Log, Resource Logs, and agent data.

Traces

Application Insights data for code instrumentation: request traces, dependency calls, exceptions, custom events.

Data sources

Azure Platform

Metrics and logs automatically generated by Azure resources (VMs, Storage, SQL, etc.). No configuration needed.

Activity Log

Log of operations on Azure resources (create, update, delete, RBAC changes). 90 days of free retention.

Resource Diagnostic Logs

Detailed logs of the resource — require configuring "Diagnostic Settings" to send them to Log Analytics, Storage or Event Hub.

Guest OS (Azure Monitor Agent)

Metrics and logs from the VM's operating system. Requires Azure Monitor Agent (AMA) + Data Collection Rule.

Application Insights

Application code telemetry. Requires SDK or auto-instrumentation.

Diagnostic Settings — critical configuration

Diagnostic Settings on each Azure resource determine whether diagnostic logs and metrics are sent to a destination. Without configuring them, detailed resource data will not be available in Log Analytics.

Log Analytics Workspace

Analysis with KQL, alerts, dashboards

Storage Account

Long-term archiving, auditing, compliance

Event Hub

Streaming to external SIEM (Splunk, QRadar, Sentinel)

Metrics in Azure Monitor

Metric characteristics

  • • Time granularity: 1 minute (some can be more frequent)
  • • Retention: 93 days in the metrics database
  • • No additional cost for platform metrics
  • • Guest OS metrics (CPU, OS memory) require Azure Monitor Agent
  • • Aggregations: Average, Sum, Count, Min, Max, P50, P95, P99
  • • Dimensions: allows filtering by dimension (e.g. CPU per core, network per NIC)

Important metrics by service

VM: Percentage CPU, Network In/Out, Disk Read/Write Bytes, OS Disk IOPS
Storage Account: Availability, Ingress, Egress, SuccessE2ELatency, Transactions
SQL Database: DTU consumption %, CPU %, Storage, Failed Connections, Deadlocks
App Service: Requests, Response Time, Http Server Errors (5xx), CPU Percentage
Load Balancer: Byte Count, Packet Count, Health Probe Status, SNAT Connection Count

Logs in Azure Monitor

Activity Log

Records all control-plane operations on Azure resources. Who did what, when, and the result.

  • •Includes: create, update, delete of resources, RBAC changes, Service Health events
  • •Free retention: 90 days. For more: send to Log Analytics.
  • •KQL table: AzureActivity
  • •Visible in Portal: Monitor → Activity Log or on each resource → Activity Log

Resource Logs (Diagnostic Logs)

Detailed logs of operations within the resource (data plane). Require Diagnostic Settings to be collected.

  • •Examples: SQL queries executed, blob operations, App Service HTTP requests
  • •Each service has distinct log categories (AuditLogs, StorageRead, HTTPLogs, etc.)
  • •Configurable retention in Log Analytics (30-730 days)
  • •Without Diagnostic Settings: these logs are NOT collected automatically

Action Groups

An Action Group is a collection of actions executed when an alert fires. It's reusable: multiple alerts can share the same action group. An alert can have multiple action groups.

Action typeDescriptionTypical use
Email / SMS / Push / VoiceDirect notification to peopleImmediately alert the operations team
Azure FunctionExecutes an Azure FunctionAutomatic remediation (restart VM, adjust configuration)
Logic AppTriggers a Logic Apps workflowCreate tickets in ITSM, send to Teams/Slack, complex flows
WebhookCalls an HTTP URL with the alert's payloadIntegrate with external systems (PagerDuty, OpsGenie, custom)
Automation RunbookRuns a runbook in Azure AutomationComplex automated remediation with PowerShell/Python
ITSMCreates a ticket in ITSM (ServiceNow, Cherwell)Integration with corporate incident management
Event HubPublishes an event to Event HubStreaming alerts to external analytics systems

Workbooks and Dashboards

Azure Workbooks

Interactive reports in Azure Monitor. Combine text, KQL queries, metrics and parameters in a single view. Shareable across teams.

  • •Combines metrics and logs in the same report
  • •Interactive parameters (filters by time, resource, etc.)
  • •Predefined templates for VMs, containers, SQL, etc.
  • •Exportable as JSON for versioning in git

Azure Dashboards

Custom views in the Azure Portal. Pin metric charts, Log Analytics queries, resource status. For continuous operational monitoring.

  • •Shareable with specific users or the entire organization
  • •Pin any Azure Monitor chart to the dashboard
  • •View multiple resources in a single view
  • •Not as interactive as Workbooks but more accessible

Did you get this topic?

Test what you just learned

An administrator wants to view detailed logs of SQL queries executed against an Azure SQL Database over the past 7 days. When searching in Log Analytics they can't find the data. What is the most likely cause?

Ready to test "Azure Monitor"?

Put what you learned to the test with original AZ-104 exam questions.

Start AZ-104 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.