AMA installed by creating DCR, but did not send heartbeat to Log Analytics

support 0 Reputation points
2024-08-27T05:55:26.39+00:00

I have created a DCR which will automatically install AMA to VM.
In VM, validated all required exe, include MonAgentCore.exe are running.
But when query heartbeat, it did not update the heartbeat.
Connection to endpoint checked, no issue.User's image

User's image

User's image

User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,315 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pavan Minukuri 110 Reputation points Microsoft Vendor
    2024-10-14T19:44:22.6666667+00:00

    Hi support,
    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
    Let me help you with the steps
    1.Check Log Analytics Workspace Connection: Make sure your VM is connected to the correct Log Analytics Workspace. Run this command to check
    az vm extension show --resource-group <your-resource-group> --vm-name <your-vm-name> --name AzureMonitorLinuxAgent --query 'Settings.workspaceId'
    2. Verify DCR Configuration: Ensure that the Data Collection Rule (DCR) is applied to the VM and set to send heartbeat data. In the Azure portal, go to Monitor > Data Collection Rules and check if the VM is listed under the DCR's scope.

    3.Check Agent Logs: Look for any errors in the Azure Monitor Agent (AMA) logs on the VM. Logs can be found here:

    Windows: C:\ProgramData\AzureMonitorAgent\Log

    Linux: /var/opt/microsoft/azuremonitoragent/log

    1. Check Time Synchronization: Ensure your VM’s time is synced properly, as incorrect time settings can prevent the heartbeat from being sent.
      5.Once Re-install and Install AMA.

    For Better understanding please reference below links:
    https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-troubleshoot-windows-vm
    https://learn.microsoft.com/en-us/azure/azure-monitor/agents/solution-agenthealth

    If you have any further queries, do let us know.


    If the answer is helpful, please click "Accept Answer" and "Upvote it".


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.