Azure Function builder.GetContext().EnvironmentName always 'Development'

Viewed 401

With reference to the official document

When this application setting isn't present when running in Azure, the environment is assumed to be Production.

Even after overriding AZURE_FUNCTIONS_ENVIRONMENT and ASPNETCORE_ENVIRONMENT to Production, I am still getting Development in Azure.

My Azure Function is a running on serverless consumption plan, on Windows environment, runtime version ~3.

0 Answers
Related