VM Guest Agent has the AMA extension installed and enabled, but only the AMAExtHealthMonitor process is running

Daniel Essel 20 Reputation points
2025-04-13T16:45:24.1966667+00:00

VM Guest Agent has the AMA extension installed and enabled, but only the AMAExtHealthMonitor process is running.

It's unable to validate the persistence key for the data store at path: C:\WindowsAzure\Resources\AMADataStore.<computer_name>.persistencekey.

The file in fact does not exist, but the registry key does. However, since the file doesn't exist the AMAExtHealthMonitor process is unable to successfully start the other AMA core processes.

I already have a ticket open w/ Microsoft Support, but I'm not gaining any traction. It's happening for a few VMs we manage and ONLY on version 1.34.0.0 (latest stable release).

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

Accepted answer
  1. Madugula Jahnavi 495 Reputation points Microsoft External Staff Moderator
    2025-05-05T12:11:27.8533333+00:00

    Hello Daniel Essel,

    I am posting an answer with the detailed troubleshooting steps as it helps the community.

    Firstly, check that the folder C:\WindowsAzure\Resources has the correct NTFS permissions.

    The Azure Monitor Agent (AMA) may fail to write essential files—like the persistence key—if the SYSTEM account doesn't have write access. Use the following command to inspect the permissions:

    
    icacls "C:\WindowsAzure\Resources" 
    

    To reset the Azure Monitor Agent completely, you can reinstall the extension by uninstalling it first as shown below.

    az vm extension delete --name AzureMonitorWindowsAgent
    

    Also, remove the residual files and registry keys manually and then delete:

    -   C:\WindowsAzure\Resources\AMADataStore*
    -   HKLM\SOFTWARE\Microsoft\Azure\AzureMonitorAgent
    

    Now reinstall it with the below given command with the updated specific version :

    az vm extension set --name AzureMonitorWindowsAgent --version 1.34
    

    Hope this helps!

    If the answer is helpful, please click on Accept Answer and upvote it.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.