Failed to connect Azure Arc from on premises linux server

Borappa, (Nayaka) 51 Reputation points
2022-09-15T06:32:24.163+00:00

Connected machine agent is installed successfully
Connectivity method: Priviate endpoint
server details: Linux Redhat 7

ERROR Message:

----------------------

ERROR Unable to obtain a token for deletion operation. Please wait a minute and try again. Error="DeviceCodeCredential: unable to resolve an endpoint: server response error:\n context deadline exceeded"
INFO Exit Code: AZCM0041: Failed To Get Access Token
INFO For troubleshooting, see https://aka.ms/arc/azcmerror
FATAL DeviceCodeCredential: unable to resolve an endpoint: server response error: context deadline exceeded

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

1 answer

Sort by: Most helpful
  1. Martin Dimovski 1,616 Reputation points MVP
    2022-09-15T07:37:31.643+00:00

    Hi,

    Thank you for posting the question to the Q&A forum.

    From the error message AZCM0041, there are 3 possibilities.

    1. Credentials wrong
    2. The account doesn't have access to the needed tenant or subscription
    3. If you are using Service principal the Client ID is wrong or the Secret is expired

    These are the possibilities that usually pop up with this error message. So kindly I would like to ask you to check first this.

    I hope the above information can help you.

    If the ANSWER is helpful, please click "Accept Answer" and upvote it. Thanks


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.