linu Vm not able to connect LA workspace and getting error like agent has problem

Rajesh Sura (CW) 1 Reputation point
2021-02-27T16:54:45.58+00:00

We have couple of azure VM which are running on Linux OS and getting failed getting agent has the problem

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,812 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 31,421 Reputation points Moderator
    2025-03-22T14:34:37.88+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.