Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,812 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We have couple of azure VM which are running on Linux OS and getting failed getting agent has the problem
Hello Rajesh !
Thank you for posting on Microsoft Learn.
First try to check the status of the Log Analytics agent (also known as the OMS agent) on your Linux VM.
sudo /opt/microsoft/omsagent/bin/service_control status
If the agent is not running, try restarting it:
sudo /opt/microsoft/omsagent/bin/service_control restart
Don't forget that the agent is properly configured with the correct workspace ID and key, the configuration file located at:
/etc/opt/microsoft/omsagent/<workspace_id>/conf/omsagent.conf
If you've tried all the above steps and the issue persists, consider reaching out to Azure Support for further assistance.