The Azure agent is not automatically installed with the Data Rule Collection.

Morsi 30 Reputation points
2024-03-04T13:27:28.6633333+00:00

I am currently looking into how to make Azure Monitor work with my VMs.

I have created the Azure Log Analytics workspace, and then I created a Data Rule Collection where I added 3 VMs. Based on what I understood from the documentation, the DRC automatically adds the agent to the VM to collect data.

However, when I go to Azure Monitor, Insights, and then Virtual Machines, my VMs appear in the "Not monitored" tab.

Is the DRC not sufficient to activate the agent on the VM and collect the data? Do I also need to do it from Azure Monitor, Virtual Machine?

Thank you for your responses.

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,645 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 8,621 Reputation points Volunteer Moderator
    2024-03-04T17:05:10.5933333+00:00

    Hi Morsi,

    Azure Monitor Agent is not automatically installed with Data Collection Rules (DCRs). While DCRs configure data collection rules, the agent installation is a separate step. Some considerations here:

    1. Data Collection Rules (DCRs): DCRs configure data collection but do not install the Azure Monitor Agent on VMs. To monitor VMs, you need to install the agent separately. Consider using the VM extension or client installer for agent installation.
    2. Verification: Run Get-AzMonitorAgentStatus in PowerShell to check agent status on VMs.

    https://learn.microsoft.com/EN-us/azure/azure-monitor/agents/azure-monitor-agent-windows-client

    Let me know if you have any additional doubt.

    Luis

    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.