Skip to main content

Challenge 24: Azure Monitor, Log Analytics & Alerts

Estimated Time

25-35 min | Cost: Free | Domain: Management & Governance (30-35%)

Exam skills covered

  • Describe Azure Monitor (including Log Analytics, Azure Monitor Alerts, Application Insights)

Overview

Azure Monitor is the comprehensive monitoring solution for Azure. It collects, analyzes, and acts on telemetry from your cloud and on-premises environments. Within Azure Monitor, Log Analytics provides powerful querying capabilities, Alerts notify you of issues, and Application Insights monitors live web applications.

This is the final challenge — it brings together monitoring concepts that apply across everything you've learned.

Explore

Task 1: Understand Azure Monitor architecture

Challenge 24 - Azure Monitor Architecture

Data typeWhat it isExampleQuery with
MetricsNumerical time-series dataCPU %, Memory usage, request countMetrics Explorer
LogsDetailed event data (text, structured)Error logs, audit events, tracesLog Analytics (KQL)

Task 2: Explore Azure Monitor

  1. In Azure Portal, search for Monitor
  2. Explore the main sections:
    • Overview: Summary dashboard
    • Metrics: Real-time numerical data (if you have resources)
    • Logs: Query logs with KQL (Kusto Query Language)
    • Alerts: Configure and view alerts
    • Insights: Pre-built monitoring for VMs, storage, networks
  3. Click Metrics — even without resources, observe the interface

Task 3: Understand Log Analytics

Log Analytics is the tool for querying Azure Monitor Logs:

  • Uses KQL (Kusto Query Language) — a read-only query language
  • Collects data from: Azure resources, VMs (via agents), applications
  • Stores data in a Log Analytics workspace

Basic KQL example:

// Show recent activity log events
AzureActivity
| where TimeGenerated > ago(24h)
| project TimeGenerated, OperationName, ActivityStatus
| take 10

Task 4: Understand Azure Monitor Alerts

Alerts proactively notify you when conditions are met:

Alert componentDescription
Alert ruleCondition that triggers the alert
Action groupWho gets notified and how (email, SMS, webhook)
Severity0 (Critical) to 4 (Verbose)

Alert types:

TypeTriggers onExample
Metric alertMetric threshold crossedCPU > 90% for 5 minutes
Log alertLog query returns resultsError count > 10 in 1 hour
Activity log alertAzure operation occursVM deleted, policy changed
Service Health alertAzure service issueOutage in your region

Task 5: Understand Application Insights

Application Insights monitors live web applications:

FeatureWhat it detects
Request ratesTraffic patterns and throughput
Response timesHow fast your app responds
Failure ratesError percentages
DependenciesExternal service call performance
Page viewsUser behavior and browser performance
Availability testsIs your app reachable?

Use case: A web application is slow. Application Insights shows:

  • Which requests are slow
  • Which dependency (database? API?) is the bottleneck
  • Which users are affected
  • When the problem started
Azure CLI Alternative
# List Azure Monitor alert rules
az monitor metrics alert list --output table 2>/dev/null || echo "No alert rules configured"

# List Log Analytics workspaces
az monitor log-analytics workspace list --query "[].{Name:name, Location:location}" --output table 2>/dev/null || echo "No workspaces found"

# View recent activity log
az monitor activity-log list --max-events 5 --query "[].{Time:eventTimestamp, Operation:operationName.localizedValue, Status:status.localizedValue}" --output table

Key Concepts

ConceptDescription
Azure MonitorComprehensive monitoring platform for Azure resources
MetricsNumerical time-series data (CPU %, memory, requests)
LogsDetailed event and diagnostic data
Log AnalyticsTool for querying logs using KQL
KQLKusto Query Language — read-only language for log analysis
AlertsNotifications triggered by conditions (metric/log/activity)
Action groupsDefine who is notified and how when alerts fire
Application InsightsAPM tool for monitoring live web applications

Knowledge Check

1. Which Azure service collects and analyzes telemetry from Azure resources?

2. What tool within Azure Monitor allows you to write queries to analyze log data?

3. A team wants to be notified by email when VM CPU usage exceeds 90% for more than 5 minutes. What should they configure?

4. Which Azure Monitor feature is specifically designed to monitor live web applications?

5. What is the difference between Azure Monitor Metrics and Azure Monitor Logs?

🎉 Congratulations!

You've completed all 24 AZ-900 challenges! Here's what to do next:

  1. Review the Coverage Matrix to ensure you've covered all exam skills
  2. Take the Microsoft Practice Assessment
  3. Schedule your exam at Pearson VUE
  4. Next step: Consider AZ-104: Azure Administrator for deeper hands-on skills

Learn More