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.
If you have any other questions, let me know in the "comments" and I would be happy to help you.