Azure-sdk-for-js: [Identity] Using existing Azure credentials for local development

Created on 10 Jul 2020  路  3Comments  路  Source: Azure/azure-sdk-for-js

In the Azure .NET packages, we have the ability to make use of existing Visual Studio Azure creds or Azure CLI creds for local development as part of the connection string available in the AzureServiceTokenProvider instead of setting up the environment variables or dealing with service principal secrets. Is there a possibility of setting something similar up for the Node package as well as part of the DefaultAzureCredential to look for existing creds available on the machine.

Azure.Identity Client customer-reported question

All 3 comments

I believe this feature is available in the latest preview version of the @azure/identity package. Please try version 1.1.0-preview.4 or higher.

cc @sadasant to correct me if I got the above wrong

@ramya-rao-a - You're right. The latest preview allows you to use your Azure CLI or your VS Code (Azure Account extension) credentials.

@karthikm249 - If you run DefaultAzureCredentials using one of these preview versions, it should automatically pick up the local credentials, without any additional configuration required in your code.

Thanks @jonathandturner

@karthikm249 Please try out the previews and share any feedback you have

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruowan picture ruowan  路  23Comments

sadasant picture sadasant  路  20Comments

emcveigh picture emcveigh  路  21Comments

donaldduy-lb picture donaldduy-lb  路  18Comments

HarshaNalluru picture HarshaNalluru  路  20Comments