hands-on lab

Monitoring Resources with Azure Monitor

Up to 1h 30m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Azure Monitor provides a comprehensive solution for gathering, querying and acting on data in Azure. Azure Monitor can ingest data from a large number of applications and services in your cloud and on-premises infrastructure. Companies use Azure Monitor because it allows them to diagnose issues across their applications, dependencies, and infrastructure, dive deep into their monitoring data with Log Analytics, automate responses to data with alerts and automated actions and visualize data in dashboards in their Azure accounts.

In this lab, you'll learn more about Azure Monitor by configuring metrics, saving visualized data in dashboards, setting alerts, and automating responses to your data with action groups.

Learning Objectives

Upon completion of this lab you will be able to:

  • Configure and view metrics in Azure Monitor
  • Visualize and save data in dashboards
  • Set alerts
  • Use log queries to interact with data

Intended Audience

This lab is intended for:

  • Azure administrators
  • Cloud engineers
  • Solutions architects and DevOps engineers
  • Anyone with a need to view and manage actionable data in the cloud


You should be familiar with:

  • Basic familiarity with the Azure Portal is helpful, but not required
  • Basic familiarity with the principles of logs and logging


January 9th, 2023 - Updated the instructions and screenshots to improve clarity

August 30th, 2023 - Updated the instructions and screenshots to reflect the latest UI

April 25th, 2023 - Updated instructions to handle data connection deprecation

January 11th, 2023 - Updated screenshots & instructions to clarify lab step

October 5th, 2022 - Updated screenshots to reflect the latest UI

June 7th, 2022 - Updated the instructions and screenshots to reflect the latest UI

February 7th, 2022 - Updated the instructions and screenshots to reflect the latest UI

January 25th, 2022 - Added explanation about how the log analytics agent is automatically installed as an extension on the VM when it connects to the log analytics workspace to start collecting data

September 9th, 2021 - Updated to reflect the latest portal experience

August 24th, 2021 - Updated lab instructions to match the latest Portal Experience for saving Monitor Query

April 6th, 2021 - Updated the instructions to match the latest Portal experience, and included a warning about the Portal taking up to 30 minutes to list the virtual machine in the log analytics workspace

December 23rd, 2020 - Upgraded the VM SKU used in the lab

Environment before

Environment after

About the author

Matt Martinez, opens in a new tab
Cloud Content & Labs QA
Learning paths

Matt has worked for multiple Fortune 500 companies as a DevOps Engineer and Solutions Architect. He is an AWS Certified DevOps Engineer - Professional, and an AWS Certified Solution Architect - Associate. He enjoys reading and learning new technologies.

Covered topics

Lab steps

Logging in to the Microsoft Azure Portal
Configuring and Saving Metrics in Azure Monitor
Configuring Log Analytics Workspaces in Azure
Querying Logs with the Azure Monitor Query Language
Working with Metric Alerts in Azure