The status of Azure Monitor Agent extension on a VM is always Transitioning

vinixwu 41 Reputation points
2025-03-10T08:25:48.6733333+00:00

I found that the status of the Azure Monitor Agent (AMA) extension on a Windows Server 2019 Datacenter VM is always "Transitioning," which causes daily auto-updates to fail every time.

I've tried updating to the latest version and rebooting the VM, but the problem persists. I then uninstalled the extension. Now, I don't know how to reinstall it. The documentation states that creating a data collection rule (DCR) will install the agent on all associated VMs, but the DCR is already there. A day has passed, but AMA has not reinstalled.

So, my questions are:

  1. Do I need to delete the DCR and recreate it to reinstall AMA?
  2. I don't remember why this extension was installed. Is it required, or can I delete it?
  3. There is one Data Collection Endpoint (DCE) listed under All resources, but I see nothing under Configuration > Resources for this DCE. The DCR in question is also not configured to use any DCE. Can I safely delete this DCE?
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,502 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vinixwu 41 Reputation points
    2025-03-12T02:10:52.4833333+00:00

    By reading the log carefully, I found that because there is a key Key:SOFTWARE\Microsoft\AzureMonitorAgent\Secrets, Name:PersistenceKeyCreated is present, but key file does not exist in data store, which blocks the AMA from starting.

    So I deleted the key PersistenceKeyCreated and reboot the VM, the status finally changed to Provisioning succeeded, and I can do operations like Check for updates in Azure Update Manager.

    According to another question, reboot seems not necessary.

    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.