Azure Connected Machine Agent fails to install

Tasos Sardelis 46 Reputation points
2022-12-22T07:36:36.47+00:00

Trying to install Azure Connected Machine Agent to join a Windows 2016 server in ARC. I run the script through Powershell and the installation fails with error: Fatal error during installation.
In Event Viewer, error 11920 says: "Product: Azure Connected Machine Agent -- Error 1920. Service 'Azure Hybrid Instance Metadata Service' (himds) failed to start. Verify that you have sufficient privileges to start system services."
I am Local admin on the machine. The same script installs the agent successfully on other servers
And the InstallationLog file is attached.273195-installationlog.txt

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
337 questions
{count} votes

4 answers

Sort by: Most helpful
  1. brent24099 111 Reputation points
    2023-03-01T20:50:48.07+00:00

    I was able to get it to work. They fixed some issues in the February update, and I was told to try again, but I still had no success.

    I was getting this error in c:\programdata\azureconnectedmachineagent\log\himds.log:

    time="2023-03-01T15:35:15-05:00" level=info msg="Loading AgentConfig file from: C:\ProgramData\AzureConnectedMachineAgent\Config\localconfig.json"
    time="2023-03-01T15:35:15-05:00" level=fatal msg="Error reading local configuration file: invalid character '\x00' looking for beginning of value"

    I deleted the folder located at C:\ProgramData\AzureConnectedMachineAgent\

    Once I did, I was able to successfully install ARC to the problem machines.

    1 person found this answer helpful.

  2. Andrew Blumhardt 9,581 Reputation points Microsoft Employee
    2023-01-05T13:28:36.767+00:00

    Quick items to check. Retry and make sure you are running the PS as admin. Sometimes a retry is all that is needed (possibly after a reboot). Check out the service listed. Verify that it is installed and can it be started manually. Look for System events or EDR blocks related to the himds service.


  3. Myint Myat 0 Reputation points
    2023-08-05T18:03:46.5066667+00:00

    I have found one solution for this.

    Delete the AzureConnectedMachineAgent folder under the location.

    Location >> C:\Program Files\AzureConnectedMachineAgent

    Location >> C:\ProgramData\AzureConnectedMachineAgent

    Copy AzureConnectedMachineAgent installer to C:\
    Installer > right click > properties> compalibility
    Select the check box for "Run this program in compatibility mode for" previous version of windows
    Also for all user

    User's image

    Add arc installer file and folder to virus & threat protection exclusion list.
    User's image

    Try installing Arc.

    It will work.


  4. Laura Hutchcroft 0 Reputation points Microsoft Employee
    2024-02-09T20:50:33.91+00:00

    https://techcommunity.microsoft.com/t5/fasttrack-for-azure/the-case-of-the-rogue-azure-arc-connected-machine-agent/ba-p/4025092 troubleshooting steps as well as a link to a really good article about azure arc agent

    0 comments No comments