Share via

Error when trying to install Azure DevOps agent for an environment resource (vm)

Adrian Stoica 0 Reputation points
2025-10-27T20:46:59.68+00:00

I'm getting this error when trying to install Azure DevOps agent for an environment resource (vm)

HTTP Status: InternalServerError, AFD Ref: Ref A: 11E67472AA3845BBA59C641F3902CE5E Ref B: BL2AA2011006036 Ref C: 2025-10-27T20:39:57Z

Tried multiple times, checked permissions, what could be the issue?

Azure DevOps
0 comments No comments

1 answer

Sort by: Most helpful
  1. Pravallika KV 17,025 Reputation points Microsoft External Staff Moderator
    2025-11-06T07:43:42.0566667+00:00

    Hi Adrian Stoica,

    Thanks for reaching out to Microsoft Q&A.

    The Azure VM agent installation relies on the Windows Management Instrumentation (WMI). If WMI is not working properly, it can cause installation failures.

    • Open an elevated Command Prompt and run this command:
    wmic /namespace:\\root\default Class StdRegProv Call GetDWORDValue hDefKey="&H80000002" sSubKeyName="SYSTEM\CurrentControlSet\Services\Winmgmt" sValueName=Start
    
    • If you're using Windows Server 2025 or later, you can check this using PowerShell:
    Invoke-CimMethod -ClassName StdRegProv -MethodName GetDWORDValue -Arguments @{sSubKeyName = 'SYSTEM\CurrentControlSet\Services\Winmgmt'; sValueName = 'Start';}
    

    Run the following command to verify the WMI repository:

    winmgmt /verifyrepository
    

    If there are any issues related WMI, you might need to salvage the repository using below command:

    winmgmt /salvagerepository
    

    As you are getting Internal error, look at the installation log files for specific error details. You can find them at msiexec.log, VmAgentInstaller.xmlfiles.

    After checking WMI and logs, try the VM agent installation again. Post-installation, check if the RdAgent service is running using:

    wmic service rdagent list brief
    

    Hope it helps!


    Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.

    User's image

    If you have any other questions, let me know in the "comments" and I would be happy to help you.

    Was this answer helpful?

    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.