I\'m currently trying to use the launchSettings.json file to manage the environment variables of the application, so my Setup.cs file can manage the en
launchSettings.json
Setup.cs
Because ASPNETCORE_ENVIRONMENT is an environment variable, you can just specify it on Azure.
ASPNETCORE_ENVIRONMENT
See the Stack Overflow answer on How and where to define an environment variable on Azure.