[Updated] AZ-104: Microsoft Azure Administrator

Administer Monitoring

Azure Monitor

Azure Monitor is a comprehensive solution within Microsoft Azure designed to deliver full-stack monitoring, advanced analytics, and intelligent automation across applications and infrastructure. By collecting, analyzing, and acting on telemetry data from Azure, on-premises, and non-Azure cloud environments, Azure Monitor enables you to understand your applications' performance and proactively identify and resolve issues.

Azure Monitor Architecture

Azure Monitor’s architecture is designed to efficiently collect and process vast amounts of telemetry data through a series of structured stages. The process begins at the data sources and continues through data collection, processing in the data platform, and finally, data consumption where insights, visualization, analysis, and response come into play.

Data Sources

Monitoring starts at the data source level, where Azure Monitor collects data from multiple origins:

  • Applications and Workloads: Telemetry from applications running in Azure, other clouds, or on-premises.
  • Infrastructure Components: Metrics and logs from virtual machines, networks, and other infrastructure components.
  • Azure Platform: Built-in telemetry from Azure services.
  • Custom Sources: User-configured sources that capture specialized data.

All these data streams are funneled into Azure Monitor, where agents, data collection rules, and diagnostic settings help in collecting, routing, and transforming the incoming data.

Data Platform

At the core of Azure Monitor lies the Data Platform, serving as the centralized repository for all telemetry data. The platform categorizes data into several types:

  • Metrics: Numerical values representing system states at specific time intervals.
  • Logs: Timestamped records that detail operations and state changes.
  • Traces: In-depth insights into application code execution.
  • Change Data: Records that trace modifications in Azure resource configurations.

Data Consumption

Once processed, the telemetry data is made available for various consumption methods to generate actionable insights and responses:

  • Insights: Detailed performance and health metrics for applications, containers, virtual machines, and network resources.
  • Visualization: Interactive representations using workbooks, dashboards, Power BI, and Grafana.
  • Analysis: Advanced examination with tools like Metrics Explorer and Log Analytics.
  • Response: Automated alerts, autoscaling actions, and AI-driven operational responses through features like AIOps.

Organizations also benefit from integration with System Center Operations Manager (SCOM), allowing unified monitoring of SCOM-managed instances, including databases. Further integrations with Event Hubs, Azure Storage, managed partners, APIs, Logic Apps, Functions, Azure DevOps, and GitHub help in creating a robust monitoring environment.

The image is a diagram of Azure Monitor, illustrating its data sources, data collection, routing, transformation, data platform, and consumption processes. It shows how data from various sources is processed and utilized for insights, visualization, analysis, and response.

Note

In this article, the focus will be on two crucial components of Azure Monitor for exam preparation: metrics and logs.

Metrics

Metrics within Azure Monitor are numerical data points collected at regular intervals that provide a near real-time snapshot of resource performance and health. Examples of common metrics include CPU usage and network traffic, which help in monitoring the operational efficiency of virtual machines and other resources without the need for complex configuration.

Metrics are typically rendered as time series, offering frequent updates that present an accurate view of system performance.

The image shows two graphs displaying CPU usage and network activity over time, with a noticeable spike in both metrics. The CPU usage averages 2.7275%, and the network shows 13.86 MiB in and 15.75 MiB out.

Logs

Logs in Azure Monitor are a vital resource for diagnosing issues, understanding system behavior, and performing comprehensive analyses. Unlike metrics, logs capture a range of data types and provide descriptive context.

Each log entry consists of fields such as the timestamp, resource identifiers, and event details, allowing for efficient search and filtering. A powerful tool for exploring logs is the Kusto Query Language (KQL). For instance, the following KQL snippet filters log data for specific events:

VMProcess
| where Computer contains "SQL" and ExecutableName == "svchost"
| extend TimeInEST = TimeGenerated - 5h
| project TimeInEST, Computer, ExecutableName, Group, FileVersion

KQL supports complex queries including joins, aggregations, and advanced analytics, making it indispensable for retrieving and scrutinizing large volumes of telemetry data. While default logging is provided for many services, detailed logs may require additional configuration such as enabling diagnostic settings, deploying specialized agents on virtual machines, or setting up custom data collection protocols.

Data Sources Relevant for the Exam

Azure Monitor ingests data from several critical sources, each contributing unique insights:

Data SourceDescriptionKey Components/Mechanisms
ApplicationTelemetry from applications via instrumentation packages such as Application Insights and availability testsApplication performance, response times, exceptions
Operating SystemPerformance metrics and operational events collected from virtual machines using agentsAzure Monitor Agent, Diagnostics Extensions
SubscriptionActivity logs that document subscription-level events including resource creation, updates, and deletionsActivity Log monitoring of resource changes
Azure TenantLogs from services such as Microsoft Entra ID (formerly Active Directory) that monitor user activities and security eventsUser authentication events, security alerts, policy changes
Custom SourcesMonitors additional customer-defined data such as specialized workloads or custom applicationsCustom configuration using diagnostic settings and agents

All collected data is categorized as either metrics or logs, which can be queried and visualized with the robust set of tools provided by Azure.

The image is a diagram showing different data sources for Azure, including Application, OS, Azure Resources, Azure Subscription, Azure Tenant, and Custom, with metrics and logs as outputs.

Azure Activity Logs

Azure Activity Logs provide a comprehensive record of subscription-level events, including resource creation, updates, and deletions, as well as insights into service health. These logs are crucial for maintaining an overview of changes and activities within your Azure environment and ensuring that you can effectively troubleshoot and verify operations.

Summary

This article has provided an overview of Azure Monitor’s architecture, highlighting the key components of metrics and logs essential for both operational insights and exam preparation.

Watch Video

Watch video content

Previous
Module Introduction