MicrosoftDocs / sandbox

Sandbox is a repo for content for employees to experiment, play with, and get feedback on new technology
https://docs.microsoft.com/sandbox
Creative Commons Attribution 4.0 International
21 stars 42 forks source link

Setting/Creating Environment Variables within Azure Functions. #114

Open ChethanGB opened 4 years ago

ChethanGB commented 4 years ago

I have a question regarding caching of Environment Variables in Azure Functions.

We are creating environment variables in our code dynamically and using them. Example:- Environment.GetEnvironmentVariable("access.key", "auto generated long lived auth keys.")

We wanted to make sure that these environment variables are not cached in any of the azure file system.

Thanks, Chethan


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

MaximRouiller commented 4 years ago

Hi @ChethanGB

They are not cached. Once you change them through the portal, the environment variables are reset and the application is restarted to account for applications loading environment variables at load.

Globally, environment variables are stored (on Windows) in the registry.

Let me know if I can help more.