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

Prabhjot Singh 255 Reputation points
2023-08-07T05:52:13.5966667+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? Furthermore, why should Non-Azure machines first install the Azure Connected Machine Agent before installing the Azure Monitor 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.
3,645 questions
{count} votes

Accepted answer
  1. SwathiDhanwada-MSFT 18,996 Reputation points Moderator
    2023-08-07T09:00:18.5333333+00:00

    @Prabhjot Singh To connect hybrid machines to Azure, you install the Azure Connected Machine agent on each machine. This agent doesn't replace the Azure Log Analytics agent / Azure Monitor Agent. The Log Analytics agent or Azure Monitor Agent for Windows and Linux is required in order to:

    • Proactively monitor the OS and workloads running on the machine
    • Manage it using Automation runbooks or solutions like Update Management
    • Use other Azure services like Microsoft Defender for Cloud

    Non-Azure machines should first install the Azure Connected Machine Agent before installing the Azure Monitor Agent because the Azure Connected Machine Agent provides additional functionality such as the ability to manage and monitor the machine using Azure Automation. The Azure Monitor Agent relies on the Azure Connected Machine Agent to communicate with the Log Analytics workspace and to receive configuration updates.

    The Azure Connected Machine Agent provides a secure and reliable way to manage and monitor non-Azure machines. It allows you to automate tasks such as patch management and software updates, and provides a centralized location to monitor all your on-premises servers and virtual machines using Azure Monitor.

    By installing the Azure Connected Machine Agent first, you can ensure that the machine is properly configured to communicate with Azure Monitor and that it has the necessary components to receive configuration updates. Once the Azure Connected Machine Agent is installed, you can then install the Azure Monitor Agent to start collecting logs and metrics from the machine.

    Overall, installing the Azure Connected Machine Agent first provides a more streamlined and secure way to manage and monitor non-Azure machines using Azure Monitor.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.