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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ 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 following script for agent removal. Open a file in your local directory named MMAUnistallUtilityScript.psl and copy the script into the file.
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.
48
48
```PowerShell
49
49
# This is per subscription, the customer has to set the az subscription before running this.
50
50
# az login
@@ -236,7 +236,7 @@ switch ($args.Count)
236
236
## Step 3 Get inventory
237
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.
238
238
```PowerShell
239
-
.\MMAUnistallUtilityScript.psl GetInventory
239
+
.\MMAUnistallUtilityScript.ps1 GetInventory
240
240
```
241
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.
242
242
@@ -248,7 +248,7 @@ The script will report the total VM, VMSS, or Arc enables servers seen in the su
248
248
## Step 4 Uninstall inventory
249
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.
0 commit comments