Forum Discussion
JohnWickXV
Oct 29, 2024Copper Contributor
Issue in Uninstallation of AMA for Arc Enabled Windows server
Dear Community,
As a troubleshooting, I want to uninstall the AMA agent from Azure arc enabled server, I tried "Uninstall" from Azure arc machine - Extension - Uninstall but it went into "Deleting" state for 2 days. Then i tried uninstallation using the Powershell but again it went to "deleting" state.
I tried removing and adding the Machine to and from DCR and Azure Arc again and then tried again still it shows deleting state only.
So, i tried uninstallation direct from server using command
azcmagent extension remove --name AzureMonitorWindowsAgent
the got the below error,
From my test machine i copied the "HandlerManifest.json" file and put in the same folder where error is showing above, Json file has this content as shown below
Now after this i tried "azcmagent extension remove --name AzureMonitorWindowsAgent" command again and got the error,
Please help in uninstalling this AMA agent.
Thanks,
Mahesh
hey! Try these command's there from the MS Docs regarding uninstalling the extension so may work
PowerShell "Remove-AzConnectedMachineExtension -MachineName <arc-server-name> -ResourceGroupName <resource-group-name> -Name AzureMonitorWindowsAgent"
Azcli -- "az connectedmachine extension delete --name AzureMonitorWindowsAgent --machine-name <arc-server-name> --resource-group <resource-group-name>"
- MHenshawBrass Contributor
hey! Try these command's there from the MS Docs regarding uninstalling the extension so may work
PowerShell "Remove-AzConnectedMachineExtension -MachineName <arc-server-name> -ResourceGroupName <resource-group-name> -Name AzureMonitorWindowsAgent"
Azcli -- "az connectedmachine extension delete --name AzureMonitorWindowsAgent --machine-name <arc-server-name> --resource-group <resource-group-name>"- JohnWickXVCopper Contributor
It didn't work 1st time, it again went to deleting state only. After restarting the server it worked. Thank you for the solution.