Search code examples
c#azureazure-active-directoryazure-web-app-service

Production slot not using Production as ASPNETCORE_ENVIRONMENT variable


I have an issue where my web app in the production slot does not connect to my DB if I have Production specified as a variable. My Staging, UAT, and Development slot work perfectly with their variables set as their names.

However, when I had Development, Staging, or UAT as the variable for my Production slot, it worked. Additionally, when I set the Production variable to blank (''), it worked? Please could someone assist?

I have 4 .json files for appsetings.[slot_name].json.


Solution

  • Issue has not been sorted, but I shall close it as the current solution works without issues. I have kept the Environment Variable set to ''.