Azure Monitor Agent Troubleshooting Tips?

David Broggy 5,681 Reputation points MVP
2022-08-22T16:54:17.417+00:00

Hi there,
I'm experimenting with the Azure Monitor Agent, since that's the recommended replacement for the old log analytics agent.
I have a windows 11 pc and I've downloaded the AMA agent from here and installed it.
fwlink

However I'm seeing this error in the logs:
c:\resourcers\azure monitor agent\azuremoniutoragent.monitoringdatastore\configuration\

Info (2022-08-22T18:40:06Z): MonAgentManager.exe - Initializing McsManager using mcsRegionalEndpoint=mcs.azure.com,mcsGlobalEndpoint=https://global.handler.control.monitor.azure.com,azureResourceEndpoint=https://monitor.azure.com/,m_MonAgentVersion=45.11.01,customResourceId=,ManagedIdentity=,AADMode=true,aadClientId=2158f033-042b-4044-b4dc-8acd105cf31e,aadAuthority=https://login.microsoftonline.com,aadResource=https://monitor.azure.com/,proxyMode=none,proxyAddress=,proxyAuth=false
Error (2022-08-22T18:40:06Z): MonAgentManager.exe - Tenant and device ids retrieval failed with HRESULT 0x8000ffff

Any idea what that means or if there is any decent troubleshooting tips?
I can't find any reference for that ClentId (and I haven't set up any custom app registrations)
I've read all of the Microsoft Learn I can find but I can't find much there to help with this.

Thanks.

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,787 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andrew Blumhardt 9,491 Reputation points Microsoft Employee
    2022-08-23T04:22:18.93+00:00

    The agent needs a valid workspace ID and key. The installer you used may need a command argument or you may need to pull the installer MSI from your portal directly. https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-windows-client

    0 comments No comments

  2. AnuragSingh-MSFT 19,686 Reputation points
    2022-08-29T06:33:12.167+00:00

    @David Broggy , I am sorry for the inconvenience for this issue.
    As "Azure Monitor agent on Windows client devices" is still in Preview, can you please use the following Teams channel for your queries/feedback - Azure Monitor Agent User Community

    For details, please refer to Questions and feedback for Azure Monitor agent on Windows client devices.

    Please let me know if you have any questions.

    0 comments No comments