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.

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

  1. Create a test.ts file like below: image

  2. 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dw511214992commented, May 17, 2021

I have test it with my tenant and subscription with admin permission, the package works fine for me. I will close this issue. thanks

0reactions
sadasantcommented, May 7, 2021

@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 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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