When using “@azure/identity” InteractiveBrowserCredential, setting parameters “clientId” and “tenantId”. it will cause an error.
See original GitHub issue- @azure/identity:
- ^1.3.0:
- windows10:
- nodejs
- v12.18.3:
- browser
- chrome:
- typescript
- 4.1.3:
When using “@azure/identity” InteractiveBrowserCredential, setting parameters “clientId” and “tenantId”. it will cause an error.
To Reproduce
-
Create a test.ts file like below:
-
Run command
tsc test.ts
,node test.js
, we expect to get a response without error, instead, there is a error report: AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client’s application registration.
Expected behavior Successfully create or update an availability set
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
We can login and create resource successfully WITHOUT setting parameters clientId
and tenantId
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
No results found
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 FreeTop 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
Top GitHub Comments
I have test it with my tenant and subscription with admin permission, the package works fine for me. I will close this issue. thanks
@colawwj seems like you need admin approval! I’m open to a meeting over Teams if that helps. Just let me know what time works for you 👍