Johnny Nguyen, thank you for the detailed information and narrowing it down to the installation issue.
The script shared earlier, downloads the installation script - install_windows_azcmagent.ps1 which contains code for downloaded the AzureConnectedMachineAgent.msi and installing it.
If this file (install_windows_azcmagent.ps1) was already downloaded to $env:TEMP folder (you can run $env:TEMP
in powershell to get the exact location), please run it from an elevated (admin) powershell using the cmd below:
& "$env:TEMP\install_windows_azcmagent.ps1";
Note the output in the PowerShell window.
Also, note that the detailed msi log files for the Arc agent installation are being generated in $env:Temp\installationlog.txt
In case the installation fails again, even after trying it from admin powershell window check, please check the following:
- Application logs in the Eventviewer of the machine
- $env:Temp\installationlog.txt file for details on error
- Output in powershell window, if any
Please let me know if you have any questions.