Azure Arc - AZCM0066: Unable to Obtain Agent Status error

bru no 1 Reputation point
2022-03-16T23:06:57.987+00:00

When trying to activate Azure arc on a server, I get the following error:

AZCM0066: Unable to Obtain Agent Status error

msg="Get \"http://localhost:40342/agentstatus\": dial tcp [::1]:40342: connectex: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte."

Does anybody have an idea for the problem causing this?

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

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,416 Reputation points
    2022-03-17T08:24:16.95+00:00

    Hi @bru no ,

    I understand that you are trying to activate Azure arc on a server but you are getting the error "AZCM0066: Unable to Obtain Agent Status error".

    This generally happens when "localhost" is resolved to the "::1" address which is the IP v6 loopback address.

    If you are not using IPv6 as a server then you should edit the /etc/hosts file and remove the entry "::1 localhost" then it resolves the error.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.