Skip to content

Commit c121d96

Browse files
authored
Merge pull request #124138 from spencer-pollock-sf/azure-monitor-agent-mm-patch
Update azure-monitor-agent-mma-removal-tool.md
2 parents 8a09fbd + ce15404 commit c121d96

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)