Can Azure Container Instance access identity metadata endpoint /medata/identity?

Reuben Cummings 40 Reputation points
2024-06-13T12:41:00.36+00:00

When trying to obtain a Microsoft auth token from within an Azure Container Instance using the /medata/identity endpoint, I get the following error.

ManagedIdentityCredential: Get \"http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fdatabase.windows.net\": dial tcp 169.254.169.254:80: i/o timeout"

Is there any way around this?

Azure Container Instances
0 comments No comments

2 answers

Sort by: Most helpful
  1. Reuben Cummings 40 Reputation points
    2024-06-14T18:16:54.3166667+00:00

    Turns out it was due to the ACI lacking a managed identity. I assigned a system identity and that resolved it.

    Was this answer helpful?

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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