Azure Function Environment Variables Azure Function Environment Variables azure azure

Azure Function Environment Variables


Assuming you are using targeting the ~2 runtime for your Azure Functions you can access your configuration values through:

log.Info(Environment.GetEnvironmentVariable("AzureWebJobsStorage", EnvironmentVariableTarget.Process));


Those environmental variables work when you are testing your function locally. However, when you deploy to the Azure Function Portal, you need to setup your variables using their built-in system to handle Environmental Variables.

Copy and past your key-values into the sections that I highlighted in the image below.

<Azure Functions Portal - Environmental