Azure Log Analytics Workspace

HASSAN BIN NASIR DAR 351 Reputation points
2025-02-03T18:29:38.44+00:00

I have created an Azure Log Analytics Workspace. Now, I want to connect an Azure VM to this workspace. It was very straightforward a year ago, but now Microsoft has changed the steps. Can you help me connect an Azure VM using the new method?

I can still see the old option in the workspace, but it is labeled as 'Virtual Machine (Deprecated)' under the Classic section. I want to use the new method. It will be good if you share straightforward steps.

Thanks in advance!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,446 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pranay Reddy Madireddy 1,590 Reputation points Microsoft Vendor
    2025-02-03T22:13:11.3933333+00:00

    Hi HASSAN BIN NASIR DAR

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    Go to the Azure Portal

    In the left-hand menu, click on "Virtual Machines" and select the VM you want to connect to the Log Analytics Workspace.

    On the VM's overview page, scroll down to the "Monitoring" section in the menu and click on "Insights" depending on what's available. If there's an option to enable monitoring, proceed to enable it, which will install the required agents.
    User's image

    If this option is not visible, go to "Extensions" under the "Settings" section in the VM's menu. Click "+ Add" to add a new extension, search for "Azure Monitor" or "Log Analytics Agent," and select it. Follow the prompts to install the agent. During installation, you'll be asked to select the Log Analytics Workspace to connect to; choose your workspace and continue.
    User's image

    After installation, return to the Log Analytics Workspace and go to "Logs" or "Virtual Machines" under the "Monitoring" section. Your VM should appear in the list of connected resources, though it might take a few minutes for data to show up.
    User's image

    To configure the logs and performance data you want to collect, go to the Log Analytics Workspace, click "Settings," then "Agents configuration" or "Data collection." From there, you can select the logs and performance counters you wish to monitor from your VM.

    https://learn.microsoft.com/en-us/azure/azure-monitor/agents/agent-windows?tabs=setup-wizard
    https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-analytics-overview

    let us know if any help, we will always help as you needed.!
    User's image

    Please do not forget to "Accept the answer” and upvote it wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.