@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.