Did you remove Arc from the local server in add-remove programs? Maybe remove the local install then rejoin to Arc. It is not unlike joining a computer to a domain. There is a managed identity that needs to be in sync.
Cannot remove AzureMonitorWindowsAgent extention from arc connected premise server
Hi there
i had a previous installed instance of AzureMonitorWindowsAgent on a windows server 2012 R2.
Then i recreated the arc ressource in azure and tried to install the arc agent and extention again, but with no luck
{
"status": "Failed",
"error": {
"code": "HCRP400",
"message": "Extension failed to install. Extension must be removed before any further requests on this extension will be accepted. Install of extension failed with error: Extension Microsoft.Azure.Monitor.AzureMonitorWindowsAgent of type: AzureMonitorWindowsAgent already exists on the box under a different name. You must execute a delete request before any new requests can be processed for this extension type. Extension Message: ExtensionOperation:uninstall. Status:Success"
}
}
I tried
Remove-AzConnectedMachineExtension -MachineName "ServerName" -ResourceGroupName "rg-name" -Name AzureMonitorWindowsAgent
But it can no longer find the machineName.
How do i delete this extension from the server ?
Thank you in advance.
-
Andrew Blumhardt 9,866 Reputation points Microsoft Employee
2022-11-16T16:59:56.863+00:00