How to Configure Environment Variables for Azure Function App in Flex Consumption Plan?

Miguel 0 Reputation points
2025-07-02T14:51:24.5233333+00:00

I have created an Azure Function App using the Python runtime in the Flex Consumption plan and successfully deployed a function using Core Tools. However, the environment variables set under "Environment Variables" > "App Settings" are not available in the function's runtime environment. When printing os.environ values from the function, none of the set variables appear. What steps can be taken to resolve this issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,939 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.