Migrate to Azure Monitor Agent from Legacy Log Analytics Agent

Introduction

The older logs Analytics Agent (OMS/MMA) will be deprecated by August 31st, 2024. All users and clients will need to migrate to an Azure Monitor-based agent. Here in this article, I discuss the steps to be followed to install the Azure Monitor Agent.

Setting Up Data Collection Rules (DCRs)


Navigate to Azure Monitor

  • Go to the Azure portal (portal.azure.com).
  • Click on Monitor in the left-hand menu.

Access Data Collection Rules

  • Under Settings, select Data Collection Rules.
  • Click on Create to create a new DCR.
    Add data source
    Destination

Configure the DCR

  • On the Resource tab, add the relevant resources (e.g., virtual machines, Virtual Machine Scale Sets, or Azure Arc-enabled servers) to the DCR.
  • Specify the data sources you want to collect from these resources.
  • Define the destination where the collected data should be sent (usually a Log Analytics workspace).

Associating DCRs with Resources

  • For VMs, you can view and modify associations directly in the Azure portal.
  • The Azure portal will also install the Azure Monitor Agent on resources that don’t already have it installed.
    Azure Monitor Agent

Creating Data Collection Endpoints (DCEs)

  • Navigate to Data Collection Endpoints.
  • In the Azure portal, go to Settings and select Data Collection Endpoints.
  • Create a New Endpoint.
  • Click on Create to set up a new DCE.
  • Provide a Rule name, and specify the Subscription, Resource Group, and Region where the DCE will be created.
    Rule Name

Adding Sources to Azure Monitoring Agent (AMA)

  • Once you’ve set up the DCR and DCE, the Azure Monitor Agent (AMA) will automatically collect data from the associated resources.
  • The AMA will send this data to the specified Log Analytics workspace.
    Log Analytics workspace

Verify Data Collection

  • Check the Log Analytics workspace to ensure that the data from your sources is being collected and processed.
    Verify Data Collection
  • Do not forget to delete the older OMS/MMA log Analytics Agent from all the Sources that have been added to DCR.

Conclusion

Hope you had a great time reading this article and have learned to migrate from the MMA Log Analytics Agent to the Azure Monitor Agent.


Similar Articles