Azure Monitor Agent unable to communicate with Log Analytics Workspace; During Install Unable to find the arc token directory; errorcode 2148795139

Peter Smit 1 Reputation point
2021-10-15T07:21:04.193+00:00

Clean installation of the Arc Agent, afterwards via DCR a Azure Monitor Agent was deployed to the ubuntu box

LinuxAMA does not communicate since Refreshtoken cannot be found:

/var/opt/microsoft/azuremonitoragent/log/mdsd.err >> GetMSI token from Arc IMDS: Retryable Exeption - Unable to find the arc token directory. Errorcode:2148795139

any thoughts?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,782 questions
Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
317 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AnuragSingh-MSFT 19,686 Reputation points
    2021-10-21T06:35:42.433+00:00

    Hi @Peter Smit , apologies for the delayed response. Can you please check the following and ensure that these are in order?

    • Please connect to this Ubuntu machine and run the command below:
      sudo azcmagent show
    • Ensure that the "Agent Status" field is "Connected" in the result from previous step. If this is not connected, you can run the azcmagent connect command to ensure that the arc agent is connected. (This might require to be run as sudo). The parameters for this command can be obtained from the onboarding script from Azure portal from "Azure Arc --> Servers\Add.." option.
    • For the VM resource created in portal for this machine, please check the status of "AzureMonitorLinuxAgent" extension. For successful install, it should be "Succeeded".
    • Ensure that the service "azuremonitoragent" on the machine is in running status (service azuremonitoragent status)

    In case you are still facing this issue after ensuring that the above points are all OK, please share details about this machine:

    • OS version (please refer here for supported OS for the agent)
    • version of Azure Monitoring agent installed ( apt list --installed | grep azuremonitoragent )
    • Are there other Linux/Ubuntu machines where this works?

  2. Shayoni Seth 1 Reputation point Microsoft Employee
    2021-11-05T18:18:49.4+00:00

    @Peter Smit , As now documented, AMA Linux 1.12.2.0 has a regression on Arc machines. Rollout of next version 1.14 is in progress, updating to this new or previous version should work on Arc.
    https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-install?tabs=ARMAgentPowerShell%2CPowerShellWindows%2CPowerShellWindowsArc%2CCLIWindows%2CCLIWindowsArc#extension-versions