Share via

Azure Monitor Agent installs fail silently – extension reports success but agent not present on VM

Jim Holcomb 0 Reputation points
2026-03-30T19:51:20.91+00:00

Problem Type: Azure Virtual Machines → Extensions → Azure Monitor Agent


Severity: High (Production impact)


Description:

We are attempting to deploy the Azure Monitor Agent (AMA) to a production VM (WVDHOST-0) using a valid Data Collection Rule (DCR) and Log Analytics workspace.

The AMA extension consistently reports:

ProvisioningState = Succeeded

However, the agent is not installed inside the guest OS, and no monitoring data is being ingested.


Environment Details:

  • VM Name: WVDHOST-0
  • Resource Group: WVD
  • Region: East US
  • Subscription: Pay-As-You-Go
  • Workspace ID: 46d7e337-643c-4615-b7e0-f09bdc115c17
  • DCR: MSVMI-DefaultWorkspace-17decd5f-d1d4-425f-826d-0438950ddf14-EUS

Verified Findings:

  1. Extension Status
    • AMA extension shows ProvisioningState = Succeeded
    1. Agent Not Installed
      • C:\Program Files\Azure Monitor Agent does not exist
        • Service AzureMonitorAgent is not present
        1. No Data Ingestion
          • Log Analytics query returns:

[]

  1. DCR Configuration
    • Performance counters enabled
      • Stream: Microsoft-InsightsMetrics
        • Destination: correct Log Analytics workspace
        1. DCR Association
          • Correctly associated to VM
          1. MSI Execution Issue
            • Running msiexec inside VM hangs indefinitely (>20 minutes)
            1. RunCommand Instability
              • Commands intermittently hang or return empty output
                • Extension commands report success but do not execute inside OS
                1. Connectivity
                  • IMDS endpoint reachable (HTTP 200)
                    • No NSG blocking observed

Actions Already Performed:

  • Multiple AMA extension reinstall attempts
  • Forced extension re-run (ForceRerun)
  • Forced handler version reset
  • Verified DCR and association
  • Verified workspace ingestion queries
  • Tested MSI execution (hang confirmed)

Observed Behavior:

  • Extension reports success but does not install binaries
  • No agent files, no service, no ingestion
  • MSI execution appears blocked or hung
  • Guest Agent behavior appears inconsistent

Request:

Please investigate:

  1. Why AMA extension provisioning reports success without installing the agent
  2. Whether the Azure Guest Agent is degraded or failing to execute extension payloads
  3. Whether Windows Installer (msiexec) is blocked by Azure extension pipeline
  4. Provide remediation steps that do NOT require VM shutdown (production system)

Business Impact:

  • Monitoring unavailable
  • Azure Monitor / VM Insights non-functional
  • Extension deployment pipeline unreliable

 

Problem Type:
Azure Virtual Machines → Extensions → Azure Monitor Agent


Severity:
High (Production impact)


Description:

We are attempting to deploy the Azure Monitor Agent (AMA) to a production VM (WVDHOST-0) using a valid Data Collection Rule (DCR) and Log Analytics workspace.

The AMA extension consistently reports:

ProvisioningState = Succeeded

However, the agent is not installed inside the guest OS, and no monitoring data is being ingested.


Environment Details:

  • VM Name: WVDHOST-0
  • Resource Group: WVD
  • Region: East US
  • Subscription: Pay-As-You-Go
  • Workspace ID: 46d7e337-643c-4615-b7e0-f09bdc115c17
  • DCR: MSVMI-DefaultWorkspace-17decd5f-d1d4-425f-826d-0438950ddf14-EUS

Verified Findings:

  1. Extension Status
    • AMA extension shows ProvisioningState = Succeeded
    1. Agent Not Installed
      • C:\Program Files\Azure Monitor Agent does not exist
        • Service AzureMonitorAgent is not present
        1. No Data Ingestion
          • Log Analytics query returns:

[]

  1. DCR Configuration
    • Performance counters enabled
      • Stream: Microsoft-InsightsMetrics
        • Destination: correct Log Analytics workspace
        1. DCR Association
          • Correctly associated to VM
          1. MSI Execution Issue
            • Running msiexec inside VM hangs indefinitely (>20 minutes)
            1. RunCommand Instability
              • Commands intermittently hang or return empty output
                • Extension commands report success but do not execute inside OS
                1. Connectivity
                  • IMDS endpoint reachable (HTTP 200)
                    • No NSG blocking observed

Actions Already Performed:

  • Multiple AMA extension reinstall attempts
  • Forced extension re-run (ForceRerun)
  • Forced handler version reset
  • Verified DCR and association
  • Verified workspace ingestion queries
  • Tested MSI execution (hang confirmed)

Observed Behavior:

  • Extension reports success but does not install binaries
  • No agent files, no service, no ingestion
  • MSI execution appears blocked or hung
  • Guest Agent behavior appears inconsistent

Request:

Please investigate:

  1. Why AMA extension provisioning reports success without installing the agent
  2. Whether the Azure Guest Agent is degraded or failing to execute extension payloads
  3. Whether Windows Installer (msiexec) is blocked by Azure extension pipeline
  4. Provide remediation steps that do NOT require VM shutdown (production system)

Business Impact:

  • Monitoring unavailable
  • Azure Monitor / VM Insights non-functional
  • Extension deployment pipeline unreliable

 

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 answers

Sort by: Most helpful
  1. Suchitra Suregaunkar 11,470 Reputation points Microsoft External Staff Moderator
    2026-03-30T20:25:14.12+00:00

    Hello Jim Holcomb

    In this scenario, the Azure Monitor Agent (AMA) VM extension shows ProvisioningState = Succeeded, but the agent is not installed inside the Windows VM, and no data is ingested into Log Analytics.

    This behavior is not an Azure Monitor Agent configuration issue and is not caused by the Data Collection Rule (DCR).

    Azure VM extensions (including AMA) depend entirely on the Azure Windows Guest Agent to execute installation payloads inside the guest OS.

    If the Azure Windows Guest Agent is degraded or unresponsive, the following behavior is expected:

    • VM extensions may report Provisioning succeeded
    • Extension binaries are not installed
    • In‑guest commands (RunCommand, MSI execution) do not execute
    • No agent services or files are created

    Azure platform does not validate successful execution inside the guest OS, only that the extension handler reported status back to Azure.

    • ProvisioningState = Succeeded only means the extension handler completed
    • It does not guarantee MSI installation completed
    • MSI execution failures are not surfaced to the control plane

    Please have a look into below remediation steps without shutting down the VM:

    1. Restart Azure Guest Agent Services:
    Restart-Service WindowsAzureGuestAgent -Force
    Restart-Service RdAgent -Force
    

    Restarting these services is safe and restores extension execution when the agent is in a degraded state.

    1. Verify Agent Status in Portal

    Navigate to:

    VM → Properties → Agent status

    Status must be Ready. if the agent is not Ready, extensions will not execute correctly.

    1. Re‑deploy AMA After Agent Recovery:

    After Guest Agent health is restored, re‑deploy the Azure Monitor Agent extension or use Azure Policy. AMA does not require VM reboot once the Guest Agent is healthy.

    This issue occurs because the Azure Windows Guest Agent on the VM is degraded or unresponsive. As documented by Microsoft, when the Guest Agent cannot execute extension payloads, VM extensions including Azure Monitor Agent may report provisioning success even though the agent is not installed. Restoring Guest Agent health is required before AMA can be installed and telemetry can be ingested.

    Thanks,
    Suchitra.


  2. Q&A Assist
    2026-03-30T19:51:58.3766667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Given the symptoms, focus on validating the AMA extension, the Azure VM Guest Agent, and the AMA processes inside the guest OS. The context supports the following checks and remediations without requiring a shutdown.

    1. Verify the AMA extension is correctly present and provisioned
    2. In Azure portal, open Virtual Machines → select WVDHOST-0SettingsExtensions + applications.
    3. Confirm that an extension with type Microsoft.Azure.Monitor.AzureMonitorWindowsAgent exists.
    4. Check its Status:
      • If it shows Provisioning Succeeded, proceed to Guest Agent and process checks below.
      • If it does not show Provisioning Succeeded, remove the extension and reinstall it, then re‑check the status.
      Guidance for this behavior is described in:
      • “Verify if the extension exists in the VM configuration” and “Verify the extension status”.
      • “Verify that the extension was successfully installed and provisioned”.
    5. If the extension is missing or stuck, reinstall:
      • In Extensions + applications, select Add, search for AzureMonitorWindowsAgent, and install.
      • After 10–15 minutes, confirm that AzureMonitorWindowsAgent shows Provisioning succeeded.
      • If it still does not, review extension logs in C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Monitor.AzureMonitorWindowsAgent.
    6. Verify the Azure VM Guest Agent health

    Because the extension reports success but no binaries or processes are present, validate that the VM Guest Agent is actually running and able to execute extension payloads.

    1. In the guest OS, open an elevated PowerShell session and run:
         Get-Service WindowsAzureGuestAgent
      
    2. Confirm the Status is Running.
    3. Alternatively, in Azure portal → VM → Extensions + applications, verify the Guest Health extension Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.GuestHealthWindowsAgent shows Provisioning Succeeded.

    If the Guest Agent service is stopped or missing, extension operations can appear successful in the portal while not actually running inside the OS. In that case, follow the guidance under “Troubleshoot the Azure Windows VM extension” to:

    • Check for C:\WindowsAzure\logs\WaAppAgent.log.
      • If this log does not exist, the VM agent is not installed and must be reinstalled.
    • If present, review it for Guest Agent errors.
    1. Confirm AMA processes are actually running

    Even if C:\Program Files\Azure Monitor Agent is missing, confirm whether any AMA processes are present (to distinguish between a pure install failure vs. a path expectation issue):

    1. Connect via RDP to WVDHOST-0.
    2. Open Task Manager (Ctrl+Shift+Esc) → Processes tab.
    3. Look for the following processes:
      • AMAExtHealthMonitor
      • MonAgentHost
      • MonAgentLauncher
      • MonAgentManager

    If all four are present and running, the agent processes have started successfully. If one or more are missing, the issue is with AMA installation or startup.

    1. Use basic AMA troubleshooting steps for Windows VMs

    Follow the documented basic flow for AMA on Windows:

    1. Verify extension installation and provisioning:
      • As above, AzureMonitorWindowsAgent must show Provisioning succeeded under Extensions + applications.
      • If not, reinstall and then check extension logs at:
        • C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Monitor.AzureMonitorWindowsAgent
    2. Verify the agent is running:
      • In Log Analytics, run:
             Heartbeat
             | where Category == "Azure Monitor Agent" and Computer == "<computer-name>"
             | take 10
        
      • If no results and MonAgentCore.exe is not visible in Task Manager, check core agent logs at:
        • C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\Configuration
    3. Verify that the DCR exists and is associated with the VM and, if using a Log Analytics workspace, that the DCR and workspace are in the same physical region.
    4. Validate that the OS and VM state support AMA
    5. Confirm the OS is supported by AMA:
      • In Azure portal → VM → Overview, check Operating system and compare with the supported Windows list referenced in the AMA documentation.
    6. Ensure the VM is Running; if the VM is stopped or was stopped during onboarding, extension installation can fail and need to be retried.
    7. When extension shows success but binaries are missing

    From the provided guidance, the most likely causes when the portal reports Provisioning Succeeded but the agent is not present are:

    • The VM Guest Agent is degraded or not actually executing the extension handler, even though the extension resource state is updated.
    • The extension handler ran but the internal MSI installation failed or was blocked; the failure is only visible in the extension logs and AMA logs on disk.

    To differentiate and remediate without shutting down the VM:

    1. Confirm Guest Agent health as in section 2 (service running, WaAppAgent.log present and without critical errors).
    2. Confirm AMA extension logs exist under C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Monitor.AzureMonitorWindowsAgent and review them for MSI or script failures.
    3. Confirm AMA data store and configuration logs under C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\Configuration and review for configuration or startup errors.
    4. If logs or directories for the extension are entirely missing, this indicates the Guest Agent is not properly attempting the installation; in that case, follow the VM agent troubleshooting steps and, if necessary, open a support request with the VM support team as suggested in the Windows agent troubleshooting article.
    5. Summary of recommended next steps for this VM

    All steps below avoid shutting down the VM:

    1. In the guest OS, verify WindowsAzureGuestAgent service is present and running; if not, repair/reinstall the Azure VM Agent per the Windows VM extension troubleshooting guidance.
    2. In Azure portal, confirm Microsoft.Azure.Monitor.AzureMonitorWindowsAgent exists and shows Provisioning succeeded; if not, remove and reinstall it, then re‑check after 10–15 minutes.
    3. On the VM, check:
      • C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Monitor.AzureMonitorWindowsAgent for extension/installer errors.
      • C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\Configuration for AMA core errors.
    4. In Task Manager, verify AMAExtHealthMonitor, MonAgentHost, MonAgentLauncher, and MonAgentManager are running.
    5. In Log Analytics, run the Heartbeat query to confirm ingestion once processes are running.
    6. If the Guest Agent is healthy but the extension log shows MSI failures that cannot be resolved, collect those logs and open a support case as recommended in the AMA troubleshooting documentation.

    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.