Forum Discussion
Monitoring agent in limbo
Hi
I'm having trouble connecting an Azure VM to a new Log Analytics Workspace.
It's in error state and i if i try and disconnect it just starts disconnecting but never ends.
Extension status for MicrosoftMonitoringAgent is "Unavailable"
Tried to uninstall the extension but that fails with "Error"
Tried to manually install the agent and but the connection status was still "Error" after giving it the night to get the right status"
Anyone got an idea of what to do next?
2 Replies
- CliveWatsonSilver Contributor
Is it a supported OS? https://docs.microsoft.com/en-us/azure/azure-monitor/platform/log-analytics-agent
Have you followed the Extension guides for Windows?
and https://docs.microsoft.com/en-us/azure/azure-monitor/platform/vmext-troubleshoot
If this is your first machine, if so it could be a proxy/port or issue like that.
- PatrikHanssonBrass Contributor
Yes, it is supported OS.
I hade it reporting to a Workspace, but now I'm trying to move it to another but it seems that something didn't go as planned when I tried disconnecting it.
If i use the powershell do try and connect it
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/oms-windows?toc=%2Fazure%2Fazure-monitor%2Ftoc.json#powershell-deployment
i get
Operation 'PUT Extension' is not allowed on VM extension 'MicrosoftMonitoringAgent' since it is marked for deletion. You can only retry the Delete operation (or wait for an
ongoing one to complete).I'v opened a support case.