Skip to content

Commit 6961020

Browse files
Update azure-monitor-agent-mma-removal-tool.md
1 parent 3c049da commit 6961020

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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.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.
4848
``` PowerShell
4949
# This is per subscription, the customer has to set the az subscription before running this.
5050
# az login
@@ -236,7 +236,7 @@ switch ($args.Count)
236236
## Step 3 Get inventory
237237
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.
238238
``` PowerShell
239-
.\MMAUnistallUtilityScript.psl GetInventory
239+
.\MMAUnistallUtilityScript.ps1 GetInventory
240240
```
241241
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.
242242

@@ -248,7 +248,7 @@ The script will report the total VM, VMSS, or Arc enables servers seen in the su
248248
## Step 4 Uninstall inventory
249249
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.
250250
``` PowerShell
251-
.\mmaUnistallUtilityScript.psl UninstallMMAExtension
251+
.\MMAUnistallUtilityScript.ps1 UninstallMMAExtension
252252
```
253253
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.
254254

0 commit comments

Comments
 (0)