Hi IanB, Thank you for your detailed follow-up on the issue.
Based on the error message and your environment, your Azure Connected Machine Agent installer cache is corrupted or missing, causing all MSI-based update and uninstall attempts to fail even though the agent otherwise operates normally in Azure Arc. This is a common scenario on Windows Server 2025 when the agent caches or registry entries are broken.
Recommended Solution:
1.Ignore Manual MSI Updates from Older Release Notes MSI Files
- The downloaded MSI files for specific older versions (e.g., 1.51, 1.52) from release notes cannot be used directly for uninstall/update because the Windows Installer expects the original MSI file associated with the GUID cached locally, which is missing or corrupted.
2.Use Microsoft's Official Troubleshooter to Clean MSI Cache
- Download and run the Microsoft Program Install and Uninstall Troubleshooter which is designed to fix problems like a lost MSI installer cache or broken registry entries that block updates/uninstalls. This clears orphaned MSI markers and enables a clean reinstall or update of the agent.
3.Remove Leftover Agent Files and Registry Keys (if uninstaller fails)
- Delete all agent directories:
C:\Program Files\AzureConnectedMachineAgent C:\ProgramData\AzureConnectedMachineAgent
- Manually erase registry keys for the agent’s product GUID under
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData
- This assures a clean state for reinstallation.
4.Use Official Azure Arc Agent Script Installer for Updates
- Instead of manually applying MSIs, use the official Azure Arc agent installation script, which manages version checks, patching, and proper install source cache updates.
Invoke-WebRequest -UseBasicParsing -Uri "https://aka.ms/azcmagent-windows" -TimeoutSec 30 -OutFile "$env:TEMP\install_windows_azcmagent.ps1"
& "$env:TEMP\install_windows_azcmagent.ps1"
5.Verify Agent Health and Update Status
Refer document:
By following the above steps, you should resolve MSI installer errors and restore normal update/uninstall operation for the Azure Connected Machine Agent.
Let us know if this resolves your issue or if further assistance is required!