Configure Diagnostic Settings for Azure Resources
Enable diagnostic settings on Azure resources to send logs and metrics to a Log Analytics workspace, then query the data using KQL in this hands-on lab.

Lab overview
Azure Monitor diagnostic settings control how platform logs and metrics are collected from Azure resources. Every Azure resource generates operational data - access attempts, configuration changes, performance metrics - but none of this telemetry is captured unless diagnostic settings are explicitly configured. Without them, critical signals are silently discarded.
In this lab, you will enable diagnostic settings on a pre-provisioned Storage Account and Key Vault, configure them to send logs and metrics to an existing Log Analytics workspace, write KQL queries to explore the ingested diagnostic data, and verify that the expected log categories are flowing correctly.
Objectives
Upon completing this beginner level lab, you will be able to:
- Enable diagnostic settings on an Azure Storage Account to send blob and queue logs to a Log Analytics workspace
- Configure diagnostic settings on an Azure Key Vault to route audit events and metrics
- Identify and select appropriate log categories for each resource type
- Write KQL queries in Log Analytics to explore ingested diagnostic data
- Verify that log categories are actively flowing
Who is this lab for?
This lab is designed for:
- Azure administrators preparing for the AZ-104 certification who need hands-on experience with monitoring and diagnostics
- Cloud engineers building foundational observability skills for Azure environments
Verified against your live environment
An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed — not multiple choice, real-world proficiency.
More labs like this
Configure Custom DNS Settings for an Azure Virtual Network
Configure custom DNS servers for an Azure VNet, apply DNS settings at the VNet and NIC level, and verify name resolution between virtual machines
Azure CLI Essentials: Managing Azure Resources with Command Line Tools
Master Azure CLI essentials by managing resource groups, deploying container apps and VMs, and managing resource states in this hands-on lab.
Creating a Web App on Azure App Service using Azure Portal
Learn how to create, configure, and deploy a web application using Azure App Service through the Azure Portal's interface.
Related reading
Environment
Every lab includes
- Real environment, pre-credentialed
- Automated checks on every step
- Isolated sandbox, auto cleanup
- AI-recommended next steps
Lab curriculum
- 01
Logging into Azure Account using Azure Portal
- 02
Enable Diagnostic Settings on the Storage Account
1 automated check
- 03
Configure Key Vault Diagnostic Logging to the Workspace
1 automated check
- 04
Query Diagnostic Data with KQL in Log Analytics
1 automated check
Skills validated
Not the lab you were looking for?
Browse 150+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.