Hi,
You need the Azure Arc connected machine agent. "The Azure Connected Machine agent enables you to manage your Windows and Linux machines hosted outside of Azure on your corporate network or other cloud providers." You then install the Azure Monitor Agent which has superseded the Log Analytics agent. Details are below.
https://learn.microsoft.com/en-us/azure/azure-arc/servers/agent-overview
Hope this helps. Ash