Log Analytics Agent has been retired since August of 2024.
The Log Analytics Agent (OMS agent for Linux) was replaced by the Azure Monitoring Agent(AMA).
There are a few way to install the AMA agent but to start I would recommend referencing this document as it will be updated as the agent matures to reflect the current methods of installation overtime:
https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-manage?tabs=azure-portal
One of the biggest changes with the AMA agent is that the machine that you are installing it on has to be connected to azure, meaning that it has to be an Azure VM, or is Arc Connected: https://learn.microsoft.com/en-us/azure/network-watcher/connection-monitor-connected-machine-agent?tabs=WindowsScript
Once the AMA Agent is installed on the machine it does not gather any information by default, like the previous Log Analytics Agent. Instead you need to associate one or many Data Collection Rules to the machine in order to start the collection of data.
Data Collection Rules (DCRs) can range from pre-made (VMInsights) to custom (Performance metrics and custom logs in a single DCR). They allow for a level of granularity that could not be achieved with the Log Analytics agent: https://learn.microsoft.com/en-us/azure/azure-monitor/data-collection/data-collection-rule-overview
Once you have created a DCR to collect the data you want to collect and send that data where you would like it to be stored, you then finally need to create a Data Collection Rule Association (DCRA) that links a VM to the DCR: https://learn.microsoft.com/en-us/azure/azure-monitor/data-collection/data-collection-rule-associations?tabs=cli#create-new-association
I could write out all of the steps here and come off as thorough and impressive but the truth six months from now, the images would inaccurate and the steps would no longer work, the documents I reference will be updated as the products are, if you read something and have a question, please let me know or open a support ticket in the portal to work with CSS support.
Azure Monitoring Enterprise Support Technical Advisor - Marcus