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.

Should be able to use azure-cli credentials from the sdk

See original GitHub issue

With the amazon cli tools, after one does aws configure, the credentials saved to ~/.aws/config will be sufficient for the AWS SDK to “just work” (in any langauge’s SDK!).

The Azure SDK for Node.js seems to require apps to implement their own credential store, according to what docs I’ve found. Instead of requiring yet-another credential storage, apps ought to be able to try to use the credentials saved in ~/.azure (/accessTokens.json?).

Getting some kind of parity with the ease of use of the Amazon SDK would greatly expedite the speed at which developers can get online & using the Azure SDK for Node.js. Please consider implementing this usability enhancement. It will help developers in their 0th hour greatly.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:23 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jacob-ebeycommented, May 20, 2019

Thanks @amarzavery, worked like a charm.

1reaction
jacob-ebeycommented, May 10, 2019

Thanks @amarzavery, I look forward to the PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sign in with Azure CLI — Login and Authentication
Sign in interactively​​ The Azure CLI's default authentication method for logins uses a web browser and access token to sign in. Run the...
Read more >
Azure Identity client library for .NET - Microsoft Learn
A credential is a class which contains or can obtain the data needed for a service client to authenticate requests. Service clients across...
Read more >
Azure authentication with the Azure SDK for Go - Microsoft Learn
In this tutorial, you'll use the Azure SDK for Go to authenticate to Azure with environment variables, a managed identity, or the Azure...
Read more >
AzureCliCredential Class (Azure.Identity) - Microsoft Learn
Obtains a access token from Azure CLI credential, using this access token to authenticate. This method called by Azure SDK clients.
Read more >
Authentication and the Azure SDK - Microsoft Developer Blogs
The answer is to use the DefaultAzureCredential from the Azure Identity library. This is a type that is available in .NET, Java, TypeScript,...
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