Monitoring agent in limbo

%3CLINGO-SUB%20id%3D%22lingo-sub-1232026%22%20slang%3D%22en-US%22%3EMonitoring%20agent%20in%20limbo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1232026%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EI'm%20having%20trouble%20connecting%20an%20Azure%20VM%20to%20a%20new%20Log%20Analytics%20Workspace.%3C%2FP%3E%3CP%3EIt's%20in%20error%20state%20and%20i%20if%20i%20try%20and%20disconnect%20it%20just%20starts%20disconnecting%20but%20never%20ends.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExtension%20status%20for%26nbsp%3BMicrosoftMonitoringAgent%20is%20%22Unavailable%22%3C%2FP%3E%3CP%3ETried%20to%20uninstall%20the%20extension%20but%20that%20fails%20with%20%22Error%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETried%20to%20manually%20install%20the%20agent%20and%20but%20the%20connection%20status%20was%20still%20%22Error%22%20after%20giving%20it%20the%20night%20to%20get%20the%20right%20status%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20got%20an%20idea%20of%20what%20to%20do%20next%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1232026%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAgents%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1232373%22%20slang%3D%22en-US%22%3ERe%3A%20Monitoring%20agent%20in%20limbo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1232373%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F577472%22%20target%3D%22_blank%22%3E%40PatrikHansson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20it%20a%20supported%20OS%3F%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Flog-analytics-agent%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Flog-analytics-agent%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHave%20you%20followed%20the%20Extension%20guides%20for%20Windows%3F%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fextensions%2Foms-windows%3Ftoc%3D%252Fazure%252Fazure-monitor%252Ftoc.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fextensions%2Foms-windows%3Ftoc%3D%252Fazure%252Fazure-monitor%252Ftoc.json%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eor%20Linux%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fextensions%2Foms-linux%3Ftoc%3D%252Fazure%252Fazure-monitor%252Ftoc.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fextensions%2Foms-linux%3Ftoc%3D%252Fazure%252Fazure-monitor%252Ftoc.json%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eand%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fvmext-troubleshoot%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fvmext-troubleshoot%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20this%20is%20your%20first%20machine%2C%20if%20so%20it%20could%20be%20a%20proxy%2Fport%20or%20issue%20like%20that.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

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
Highlighted

@Clive Watson 

 

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-...

 

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.