AuthenticationError trying to reuse credentials from az-cli
See original GitHub issueRunning 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:
- Created 3 years ago
- Reactions:4
- Comments:9
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m running in this very same problem using docker.
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