Episode 1 โ€” Azure Monitor: the mental model

Series: AZ-104 ยท Monitor and Maintain Azure Resources โ€” micro-learning. Where we are: This is the opening episode; it builds the skeleton that the rest of Part 1 hangs on before we drill into Episode 2.

Why it matters

Azure Monitor is Microsoft's unified observability service for collecting, analyzing, and acting on telemetry from cloud and hybrid environments. Almost every AZ-104 monitoring question โ€” metrics, logs, alerts, insights, Network Watcher โ€” is really a question about one part of this single service. Learn the mental model once and the whole domain becomes navigation instead of memorization.

Learning objectives

  • By the end, you can describe Azure Monitor as one observability service and place any feature inside the collect โ†’ analyze โ†’ respond loop.
  • By the end, you can distinguish the two data-platform workspace types and the query language each uses.
  • By the end, you can contrast metrics vs logs โ€” the anchor distinction for all of Part 1.
  • By the end, you can name what Azure Monitor covers: cloud resources, infrastructure, applications, and AI agents.
  • By the end, you can explain how hybrid resources are onboarded via Azure Arc and the Azure Monitor Agent (AMA).

The one idea: collect โ†’ analyze โ†’ respond

Everything in Azure Monitor is a stage in a single loop. When you meet a new feature later in this course, ask "which stage is this?" โ€” that alone tells you what it does.

RESPONDANALYZEData platform (COLLECT)SourcesCloud resources(platform metrics/logs)Infrastructure(VMs, Kubernetes, network)Applications(App Insights / OTel)AI agentsAzure Monitor workspaceMetrics (Prometheus/OTel)Log Analytics workspaceLogs & tracesMetrics explorer(PromQL)Log Analytics(KQL)Workbooks / Dashboards /GrafanaAlerts (AIOps)AutoscaleAction groups

Mnemonic: "CAR" โ€” Collect, Analyze, Respond. Azure Monitor drives every observability journey like a CAR.

Azure Monitor also underpins Defender for Cloud and Microsoft Sentinel: they reuse the same data platform, query languages, and analysis tools, so your investment in KQL and workspaces pays off beyond monitoring.

The data platform: two workspace types

The centralized data platform is where telemetry lands. It uses two workspace types, each optimized for different data. Despite the similar names, these are separate resource types with different data stores and query languages โ€” a classic exam trap.

Workspace typeWhat it storesQuery languageAnalyze with
Log Analytics workspaceLog & trace dataKQL (Kusto Query Language)Log Analytics
Azure Monitor workspacePrometheus & OpenTelemetry metricsPromQL (Prometheus Query Language)Metrics explorer

Mnemonic: Log Analytics โ†’ Language KQL; Azure Monitor workspace โ†’ Metrics + ProMQL.

We open up logs, KQL, and the Log Analytics workspace in Episode 3, and metrics in Episode 2.

The big anchor: metrics vs logs

If you remember one contrast from this course, make it this one. It reappears in every later episode.

MetricsLogs
Shape of dataNumeric time-seriesRich records (structured events)
FreshnessNear-real-timeQueryable records, deeper detail
Query toolMetrics explorer (PromQL)Log Analytics (KQL)
Best forFast dashboards, autoscale, dynamic thresholdsCorrelation, root-cause, troubleshooting

Preview โ€” control plane vs data plane: logs also split by who did what (the activity log, control plane) vs what happened inside a resource (resource logs, data plane). We wire up that data-collection pipeline in Episode 4.

What Azure Monitor covers (the four sources)

SourceWhat it brings inNotes
Cloud resourcesPlatform metrics & logs across Azure services, plus Microsoft Entra ID audit logsSome services add curated Azure Monitor Insights (deep dashboards) โ€” see Episode 6
InfrastructureVMs and Kubernetes health/performance; event logs + OpenTelemetry & Prometheus metricsNetwork Watcher uses the Azure Monitor data platform โ€” see Episode 7
ApplicationsApplication Insights, the OpenTelemetry (OTel) APM feature for live web appsVendor-neutral telemetry collection
AI agentsApplication Insights across Microsoft Foundry, Copilot Studio, third-party frameworksSurfaces token consumption, latency, error rates, quality scores

Analyze and visualize

  • Metrics explorer โ€” ad-hoc analysis of metrics using PromQL.
  • Log Analytics โ€” ad-hoc analysis of log & trace data using KQL.
  • Workbooks, Azure dashboards, and Grafana โ€” prebuilt or custom visualizations in the portal.

These interactive tools are also your troubleshooting/diagnostics surface: investigate failures, correlate events, and find performance bottlenecks.

Respond

  • Alerts proactively notify you before issues reach customers. AIOps capabilities use machine learning to reduce noise: dynamic thresholds (adapt to metric patterns) and smart detection (application anomalies). Full treatment in Episode 5.
  • Action groups deliver the response โ€” including no-code Logic Apps workflows and low-code Azure Automation runbooks.
  • Autoscale automatically adds and removes resources based on load; rules can key off metrics, schedules, or both.

Hybrid & onboarding

Azure Monitor is not Azure-only โ€” it can be a centralized monitor for hybrid environments.

  • Azure Arc connects resources in other clouds and on-premises so you monitor them alongside Azure.
  • The Azure Monitor pipeline extends data collection into your own datacenter/other clouds โ€” built for large data volumes and intermittent connectivity.
  • Onboarding methods: Azure portal, command line, or infrastructure as code (IaC) for scale.
  • The Azure Monitor Agent (AMA) installed on VMs/servers collects logs and metrics according to your data collection rules โ€” detailed in Episode 4.

Numbers & names to memorize

ItemValue / Name
Core loopCollect โ†’ Analyze โ†’ Respond
Workspace typesLog Analytics workspace (logs/traces) ยท Azure Monitor workspace (metrics)
Query languagesKQL (logs) ยท PromQL (metrics)
Anchor contrastMetrics = numeric time-series, near-real-time ยท Logs = rich records
Four sourcesCloud resources, Infrastructure, Applications, AI agents
APM featureApplication Insights (OpenTelemetry / OTel)
AIOps alert featuresDynamic thresholds, smart detection
Hybrid connectorAzure Arc
Collection agentAzure Monitor Agent (AMA) + data collection rules
Shared platform usersDefender for Cloud, Microsoft Sentinel

Apply it

Scenario 1. Your team runs Azure VMs plus a fleet of on-premises Linux servers, and wants both monitored from one place in the Azure portal. What do you configure, and why?

Scenario 2. A dashboard must show CPU refreshing every minute for autoscale decisions, while a separate investigation needs to correlate detailed application events after an outage. Which part of the data platform and which query tool fits each need?

Q3 (single-answer). Which query language is used to analyze data in a Log Analytics workspace?

  • A. PromQL
  • B. KQL
  • C. SQL
  • D. OTel

Q4 (single-answer). Which statement about the Azure Monitor data platform is correct?

  • A. Log Analytics and Azure Monitor workspaces are the same resource with two names.
  • B. Azure Monitor workspaces store logs; Log Analytics workspaces store metrics.
  • C. Azure Monitor workspaces store Prometheus/OpenTelemetry metrics; Log Analytics workspaces store logs & traces.
  • D. Both workspace types are queried only with KQL.

Answers

  • Scenario 1. Use Azure Arc to connect the on-premises servers, then deploy the Azure Monitor Agent (AMA) with data collection rules; Arc brings non-Azure machines under one Azure Monitor pane.
  • Scenario 2. CPU-for-autoscale โ†’ metrics in an Azure Monitor workspace, viewed in metrics explorer (near-real-time, PromQL). Post-outage event correlation โ†’ logs in a Log Analytics workspace, queried with KQL.
  • Q3 โ€” B. Log Analytics workspaces are analyzed with KQL; PromQL is for metrics.
  • Q4 โ€” C. The two workspace types are separate resources: metrics (Prometheus/OTel) vs logs & traces.

Recap

  • Azure Monitor = one unified observability service for cloud + hybrid telemetry.
  • Organize everything as Collect โ†’ Analyze โ†’ Respond (the "CAR" loop).
  • The data platform has two workspace types: Log Analytics (logs/traces, KQL) and Azure Monitor workspace (metrics, PromQL) โ€” separate resources.
  • The anchor contrast: Metrics = numeric, near-real-time; Logs = rich records.
  • It monitors four source families: cloud resources, infrastructure, applications, AI agents.
  • Respond with alerts (AIOps), action groups, and autoscale.
  • Hybrid comes in via Azure Arc; agents onboard via AMA + data collection rules. The same platform also powers Defender for Cloud and Sentinel.

Next up

Episode 2 โ€” Metrics & Metrics Explorer: zoom into the near-real-time, numeric half of the platform and learn to slice time-series like a pro.