How and when to install Azure monitor Agent in On-premises Machines to monitor?

divine s 20 Reputation points
2025-10-29T15:34:00.39+00:00

Are Azure Monitor Agent and Azure Connected Machine Agent used to collect logs from On-premises Servers and Virtual Machines and store them in Log Analytics Workspace?

When should one opt for Azure Monitor Agent versus Azure Connected Machine Agent?

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

1 answer

Sort by: Most helpful
  1. hossein jalilian 13,125 Reputation points Volunteer Moderator
    2025-10-30T00:00:27.4433333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    You must first connect them to Azure through Azure Arc using the Azure Connected Machine agent, then install the Azure Monitor Agent via Arc to collect logs and metrics. The Arc agent only handles onboarding and management, while AMA performs the actual data collection and sends it to a Log Analytics Workspace. For on-prem or hybrid setups, both agents are required Arc for connection, AMA for monitoring, since the old Log Analytics (MMA) agent is now deprecated.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

Your answer

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