Azure Monitoring Agent settings

RobertAzure 0 Reputation points
2023-03-08T19:44:34.97+00:00

Hi Guys!

There is a VM with the "Azure Monitoring Agent" extension enabled.

I have many "Log Analytics" instances and I don't know which one the Azure Monitoring Agent is using (of course I can go through all the Log Analytics instances manually and find where the agent is being used).

Where can I see which Log Analytics the Azure Monitoring Agent is using?

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

3 answers

Sort by: Most helpful
  1. JimmySalian-2011 42,491 Reputation points
    2023-03-08T20:25:07.62+00:00

    @RobertAzure Microsoft Monitoring Agent appears in Control Panel. To confirm it is reporting to Log Analytics, review the agent configuration.

    https://learn.microsoft.com/en-us/azure/azure-monitor/agents/agent-windows?tabs=setup-wizard#verify-agent-connectivity-to-azure-monitor

    Hope this helps.

    JS

    ==

    Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.


  2. David Broggy 6,291 Reputation points MVP Volunteer Moderator
    2023-03-08T21:41:01.06+00:00

    Hi Robert,

    If I may add, this kql query may show you where your AMA agents are installed, as well as any other related agents.

    Typically if you deploy AMA it's with ARC, if it's an on-prem server.

    But even if it's in Azure, the agents report back to a log analytics workspace, so the information you need should be queryable via kql.

    https://www.kaidojarvemets.com/kql-query-who-removed-azure-monitor-agent-extension/


  3. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2023-03-09T18:46:26.94+00:00

    Try looking under Solutions in the portal or use az monitor log-analytics solution list. Once you click on an appropriate solution, you can hit the Virtual Machines blade and see the associated VMs. The Log Analytics workspace will be in ().

    EDIT 20 March 2023

    Use the following CLI command az monitor data-collection rule association list and let me know if that works. You should also be able to find the Data Collection Rule the VM was added to and check the Data Source > Destination on it.


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.