question

UttamSabhadiya-2596 avatar image
0 Votes"
UttamSabhadiya-2596 asked JamesTran-MSFT answered

Using keyvault secrets as environment variables in local nodejs project

Is there any way by which I can load ketvault values in local nodejs project as environment variables. And when I have to access that value I can do that by process.env.VARIABLE_NAME instead of calling javascript function to access keyvault value.

azure-key-vault
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JamesTran-MSFT avatar image
0 Votes"
JamesTran-MSFT answered

@UttamSabhadiya-2596
Thank you for your post and I apologize for the delayed response!

For your scenario of accessing Key Vault Secrets locally, I found an article that might help point you in the right direction - Configuring your local JS dev environment for Azure. Within this doc you'll be Working with Azure and the Azure SDK client libraries to Create environment variables for the Azure libraries.


Additional Links:
Use Key Vault references for App Service and Azure Functions
What are the advantages for storing simple secrets in Key Vault over Environment variables
Using Environment Variables with Express for Local Dev & Azure App Service - 3rd party article


If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.


Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.