Skip to content

Commit ce15404

Browse files
Update azure-monitor-agent-mma-removal-tool.md
1 parent 9384a16 commit ce15404

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ function GetArcServersWithLogAnalyticsAgentExtensionInstalled {
8585
$serverParallelThrottleLimit = $serversCount
8686
}
8787
88+
$serverGroups = @()
89+
8890
if($serversCount -eq 1)
8991
{
9092
$serverGroups += ,($serverList[0])
@@ -385,7 +387,7 @@ The script reports the total VM, VMSSs, or Arc enables servers seen in the subsc
385387
## Step 4 Uninstall inventory
386388
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.
387389
``` PowerShell
388-
.\MMAUnistallUtilityScript.ps1 UninstallMMAExtension
390+
.\MMAUnistallUtilityScript.ps1 UninstallExtension
389391
```
390392
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.
391393

0 commit comments

Comments
 (0)