question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AuthenticationError trying to reuse credentials from az-cli

See original GitHub issue

Running in WSL2 with node LTS (15.3.0)

I installed az-cli (2.15.1) and authenticated with az login and selected the same subscription with my ADT instance.

After npm run start I got

AuthenticationError: ManagedIdentityCredential authentication failed.(status code 400).
More details:
request to http://169.254.169.254/metadata/identity/oauth2/token?resource=https%3A%2F%2Fdigitaltwins.azure.net&api-version=2018-02-01 failed, reason: connect ECONNREFUSED 169.254.169.254:80
    at ManagedIdentityCredential.<anonymous> (/home/rido/code/digital-twins-explorer/client/node_modules/@azure/identity/dist/index.js:1077:23)
    at Generator.throw (<anonymous>)
    at rejected (/home/rido/code/digital-twins-explorer/client/node_modules/@azure/identity/node_modules/tslib/tslib.js:112:69)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

2reactions
deomaximocommented, Jan 30, 2021

I’m running in this very same problem using docker.

1reaction
apkolhecommented, Feb 18, 2021

locate package.json inside client folder. Under dependencies update @azure/identity from “@azure/identity”: “^1.1.0” to “^1.2.0-beta.2” save and run “npm install” command. This should update the package. This is related to https://github.com/Azure/azure-sdk-for-js/issues/11451#issuecomment-705247729 and fixed in @azure/Identity@1.2.0-beta.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

[FEATURE REQ] Reuse credentials from Powershell AZ Module
According to the Auth document you have already integrated with Azure CLI, that allows Fluent to reuse CLI authentication context. We would like...
Read more >
Troubleshoot login to registry - Azure Container Registry
Unable to authenticate using AAD or admin login credentials. ... Error response from daemon: login attempt failed with status: 403 Forbidden ...
Read more >
EnvironmentCredential authentication error while trying to run ...
The reason the DefaultAzureCredential is not working is because the DefaultAzureCredential uses credentials stored in the cache when you ...
Read more >
Failed to authorize with AAD by credentials. - Dynamics 365 ...
Authentication Error while developing custom service :Failed to authorize with AAD by credentials. Unanswered. Hi Sohail. The Application type is WebApp/API .
Read more >
Azure AD authentication troubleshooting: Known problems ...
Solution: Delete cached credentials and browser cookies. ... You may be trying to access a Microsoft product which requires your user ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found