I've deployed an Azure Function to Azure. I have not specified AZURE_FUNCTIONS_ENVIRONMENT to be "Development" anywhere in the Application Settings, or anywhere else in the environment.
However, when the following code executes
var configurationBuilder = new ConfigurationBuilder()
.SetBasePath(basePath)
.AddJsonFile("appsettings.json", true, true)
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", true, reloadOnChange: true);
$"appsettings.{env.EnvironmentName}.json"resolves to "appsettings.Development.json", and as such the Development configuration is loaded instead of the Production config.
When I view the Environment variables of that environment via Kudu, I don't see any references to Development at all, and in fact see WEBSITE_SLOT_NAME = Production configured (though that's not necessarily relevant to a Function.
My understanding is that if no Environment is specified then the runtime defaults to Production. As such, this implies to me that Development is specified somewhere. I have no idea where to look for that though.
Question: Is it possible that Development could be specified somewhere that isn't in App Settings or Environment variables? If so, where? Is there anywhere I could look for it, or is there any other explanation for why the Development configuration is being loaded instead of Production? What should I do to explicitly ensure the Production configuration is loaded in the Production environment?
