Should be able to use azure-cli credentials from the sdk
See original GitHub issueWith 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:
- Created 6 years ago
- Reactions:10
- Comments:23 (7 by maintainers)
Top 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 >
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
Thanks @amarzavery, worked like a charm.
Thanks @amarzavery, I look forward to the PR