Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.35 KB

File metadata and controls

30 lines (21 loc) · 1.35 KB

Steps to migrate Log Analytics agent (also known as MMA and OMS) to Azure Monitor Agent (AMA)

As a reference please review Monitoring Agent Migration WorkFlow

The main purposes of the scripts are:

  • Create a report with Azure VMs still running legacy monitoring agent (MMA)
  • Based on the report remove legacy monitoring agent

How to use it?

  • Create report via PS:
    • 01_MMA_Report.ps1 - is to gather current AVD hosts wich have been monitored via MMA agent and export it to csv file
  • Create report via Azure Resource Graph Explorer
    • Login to Azure Portal
    • In the main search type 'Azure Resource Graph Explorer'

Azure Resource Graph Explorer 1

  • Run the query

Azure Resource Graph Explorer Report

resources
| where type == "microsoft.compute/virtualmachines"
| extend agentversion = properties.agentVersion | project name, agentversion, location, resourceGroup, subscriptionId
  • Review the report to confirm the list of VMs with MMA agent

  • 02_MMA_Extention_remove.ps1 that script will reference the csv report and remove MMA agent