Skip to content

Commit 36e9a6b

Browse files
authored
acrolinx
1 parent 6961020 commit 36e9a6b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

articles/azure-monitor/agents/azure-monitor-agent-mma-removal-tool.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.custom:
1111
---
1212
# MMA/OMS Discovery and Removal Utility
1313

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, and Azure Arc servers from a single subscription.
1515

1616
The utility works in two steps:
1717

@@ -33,7 +33,7 @@ Do all the setup steps on an Internet connected machine. You need:
3333

3434

3535
## Step 1 Login and set subscription
36-
The tool works one subscription at a time. You must login and set the subscription to do the removal. Open a PowerShell command prompt as administrator and login.
36+
The tool works one subscription at a time. You must log in and set the subscription to do the removal. Open a PowerShell command prompt as administrator and login.
3737

3838
``` PowerShell
3939
az login
@@ -44,7 +44,7 @@ Next you must set your subscription.
4444
Az account set --subscription {subscription_id or “subscription_name”}
4545
```
4646
## Step 2 Copy the script
47-
You will use the following script for agent removal. Open a file in your local directory named MMAUnistallUtilityScript.ps1 and copy the script into the file.
47+
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.
4848
``` PowerShell
4949
# This is per subscription, the customer has to set the az subscription before running this.
5050
# az login
@@ -234,22 +234,21 @@ switch ($args.Count)
234234
```
235235

236236
## Step 3 Get inventory
237-
You must collect a list of all legacy agents, both MMA and OMS, on all VM, VMSS and Arc enabled server in the subscription. Run the script you downloaded to your file to product and inventory of legacy agents in your subscription.
237+
You must collect a list of all legacy agents, both MMA and OMS, on all VM, Virtual Machine Scale Sets, and Arc enabled server in the subscription. Run the script you downloaded to your file to product and inventory of legacy agents in your subscription.
238238
``` PowerShell
239239
.\MMAUnistallUtilityScript.ps1 GetInventory
240240
```
241-
The script will report the total VM, VMSS, or Arc enables servers seen in the subscription. It will take several minutes to run. You will see a progress bar in the console window. Once complete there will be a CSV file called MMAInventory.csv in the local directory with the following format.
241+
The script will report the total VM, Virtual Machine Scale Sets, or Arc enables servers seen in the subscription. It will take several minutes to run. You'll see a progress bar in the console window. Once complete there will be a CSV file called MMAInventory.csv in the local directory with the following format.
242242

243243
|Resource_Group | Resource_Type | Name | Install_Type |Extension_Name |
244244
|---|---|---|---|---|
245245
| Linux-AMA-E2E | VM | Linux-ama-e2e-debian9 | Extension | OmsAgentForLinux |
246246
|AMA-ADMIN | VM | test2012-r2-da | Extension | MicrosoftMonitorAgent |
247247

248248
## 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 is not running you will not be able to remove the agent.
249+
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.
250250
``` PowerShell
251251
.\MMAUnistallUtilityScript.ps1 UninstallMMAExtension
252252
```
253-
Once the script is complete you will be able to see the removal status for your VM, VMSS and Arc enabled servers in the MMAInventory.csv file.
253+
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.
254254

255-
---

0 commit comments

Comments
 (0)