Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Azure icon
Labs

Configure Virtual Machine Monitoring in Azure

Azure Monitor is a suite of services and features within Azure, which provides various monitoring capabilities. It is possible to monitor Azure resources, subscriptions, and an Azure AD tenant. In this hands-on lab, you will gain experience configuring monitoring for a Virtual Machine, using Azure Monitor Logs (also known as Log Analytics). By the end of this lab, you'll be able to configure a Virtual Machine to send metrics and log data to a Log Analytics Workspace.

Azure icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 24, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create a Log Analytics Workspace

    Use the Azure Portal to create a new Log Analytics workspace.

    1. Click on + Create a resource option in the sidebar menu.
    2. Search for "log analytics workspace" and select the option that appears.
    3. Click on Create to create a new Log Analytics Workspace.

    Create the workspace with the following details:

    1. Fill out the Basics page:
      • Subscription:* select the Hands-On Labs subscription
      • Resource Group:* select the existing resource group
      • Name:* Create a unique name like, 'lablog123'
      • Region:* Use the same region as the existing resources
    2. Click on Next.
    3. Fill out the Pricing tier
      • Pricing tier:* Pay-as-you-go
    4. Click on Review + Create.
    5. Click on Create.
  2. Challenge

    Connect VM1 to Log Analytics

    Use the Azure Portal to create a new Log Analytics workspace.

    1. Navigate to the Log Analytics workspace, you just created.
    2. Click on 'Virtual machines' within the 'Workspace Data Sources' section of the resource menu.
    3. Click on 'vm1'.
    4. Click 'Connect'.
  3. Challenge

    (OPTIONAL) Verify Virtual Machine Monitoring

    NOTE: You may choose to perform the following tasks, to help understand and verify that virtual machine monitoring is working.

    This is an optional activity and is not required to enable virtual machine monitoring.

    The following information shows key areas of virtual machine monitoring, and what you can expect to see in each section.

    • VM Extensions:
      • Navigate to VM1 on then click Extensions.
      • You should expect to see the MicrosoftMonitoringAgent installed.
    • Log Queries:
      • Navigate to the Log Analytics workspace created earlier, and then click Logs.
      • You should expect to see several sample queries, such as computer availability.
    • Workbooks
      • Navigate to the Log Analytics workspace created earlier, and then click Workbooks.
      • You should expect to see workbooks such as Agent Health which will show information for vm1.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight