You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/agents/azure-monitor-agent-mma-removal-tool.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.custom:
11
11
---
12
12
# MMA/OMS Discovery and Removal Utility
13
13
14
-
After you migrate your machines to the Azure Monitor Agent (AMA), remove the legacy Log Analytics Agent, MMA, or OMS depending on your operating systems, to avoid duplication of logs. The legacy Discovery and Removal Utility can remove the extensions from Azure Virtual Machines (VMs), Azure Virtual Machine Scale Sets (VMSSs), and Azure Arc servers from a single subscription.
14
+
After you migrate your machines to the Azure Monitor Agent (AMA), remove the legacy Log Analytics Agent, MMA, or OMS depending on your operating systems, to avoid duplication of logs. The legacy Discovery and Removal Utility can remove the extensions from Azure Virtual Machines (VMs), Azure Virtual Machine Scale Sets (VMSSs), and Azure Arc servers from a single subscription.
15
15
16
16
The utility works in two steps:
17
17
@@ -44,7 +44,8 @@ Next you must set your subscription.
44
44
Az account set --subscription {subscription_id or “subscription_name”}
45
45
```
46
46
## Step 2 Copy the script
47
-
You will use the followng script for agent removal. Open a file in your local directory named MMAUnistallUtilityScript.ps1 and copy the script into the file.
47
+
48
+
You'll use the following script for agent removal. Open a file in your local directory named MMAUnistallUtilityScript.ps1 and copy the script into the file.
48
49
```PowerShell
49
50
# This is per subscription, the customer has to set the az subscription before running this.
50
51
# az login
@@ -246,10 +247,9 @@ The script reports the total VM, VMSSs, or Arc enables servers seen in the subsc
246
247
|AMA-ADMIN | VM | test2012-r2-da | Extension | MicrosoftMonitorAgent |
247
248
248
249
## Step 4 Uninstall inventory
249
-
This script iterates through the list of VM, VMSS, and Arc enabled servers and uninstalls the legacy agent. If the VM, VMSS, or Arc enabled server isn't running, they won't be remove.
250
+
This script iterates through the list of VM, Virtual Machine Scale Sets, and Arc enabled servers and uninstalls the legacy agent. If the VM, Virtual Machine Scale Sets, or Arc enabled server is not running you won't be able to remove the agent.
Once the script is complete you'll be able to see the removal status for your VM, VMSS and Arc enabled servers in the MMAInventory.csv file.
254
+
Once the script is complete you'll be able to see the removal status for your VM, Virtual Machine Scale Sets, and Arc enabled servers in the MMAInventory.csv file.
0 commit comments