'Azure App Service Configuration not overriding my appsettings in appsetttings.json

In ConfigurationBuilder:

.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)

In AppSettings.json:

    "AllowedHosts": "*",
    "AppSettings": {
        "Edition": "Developer"
    }

In Azure App Service Configuration: I have made several different attempts, but without success.

  {
    "name": "AppSettings.Edition",
    "value": "Standard",
    "slotSetting": false
  },
  {
    "name": "AppSettings:Edition",
    "value": "Standard",
    "slotSetting": false
  },
  {
    "name": "AppSettings__Edition",
    "value": "Standard",
    "slotSetting": false
  },
  {
    "name": "AppSettings_Edition",
    "value": "Standard",
    "slotSetting": false
  },
  {
    "name": "Edition",
    "value": "Standard",
    "slotSetting": false
  },

I want to note that under Connection strings, I have no problem overwriting.

What am I doing wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source