We have Azure mOnitor agent installed in our VM, but we are not receiving Heartbeat for a VM

Praveen Balaji M 0 Reputation points
2023-09-12T10:35:27.2366667+00:00

We have Azure mOnitor agent installed in our VM, but we are not receiving Heartbeat for a VM,

Prequsite check:

Managed Identity enabled

VM and DCR associated

VM agent ready

all are good, still I was not able to see the Heartbeat of the VM

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

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,756 Reputation points
    2023-09-12T21:58:52.65+00:00

    Praveen Balaji M Welcome to Microsoft Q & A Community Forum. Kindly follow below steps to verify :

    machine:

    1. Carefully review the prerequisites here.
    2. Verify that the extension was successfully installed and provisioned, which installs the agent binaries on your machine:
      1. Open Azure portal > select your virtual machine > Open Settings : Extensions + applications from the pane on the left > 'AzureMonitorWindowsAgent'should show up with Status: 'Provisioning succeeded'
        1. If not, check if machine can reach Azure and find the extension to install using the command below: az vm extension image list-versions --location <machine-region> --name AzureMonitorWindowsAgent --publisher Microsoft.Azure.Monitor
          1. Wait for 10-15 minutes as extension maybe in transitioning status. If it still doesn't show up, uninstall and install the extension again and repeat the verification to see the extension show up.
            1. If not, check if you see any errors in extension logs located at C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Monitor.AzureMonitorWindowsAgent on your machine
    3. Verify that the agent is running:
      1. Check if the agent is emitting heartbeat logs to Log Analytics workspace using the query below. Skip if 'Custom Metrics' is the only destination in the DCR:Heartbeat | where Category == "Azure Monitor Agent" and 'Computer' == "<computer-name>" | take 10
        1. If not, open Task Manager and check if 'MonAgentCore.exe' process is running. If it is, wait for 5 minutes for heartbeat to show up.
          1. If not, check if you see any errors in core agent logs located at C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\Configuration on your machine

    If none of the above helps, file a ticket with Summary as 'AMA extension provisioned but not running' and Problem type as 'I need help with Azure Monitor Windows Agent'.

    0 comments No comments

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.