appsettings.json to Azure App Service settings
Convert appsettings.json to Azure App Service name/value JSON. Flatten nested .NET keys and generate an advanced-edit settings array locally.
Use the JSON array in App Service advanced editing
The output is an array of name, value and slotSetting entries for App Service's environment-variable advanced editor. Values are strings and nested keys use double underscores. The converter sets slotSetting to false; review deployment-slot behavior before applying it. Use Key Vault references or your platform's secret configuration for production credentials.
ENV → JSON detects the pasted format automatically. You can paste another supported format without changing this selection.
How .NET maps settings to environment variables
Logging__LogLevel__Default
Sections
Every level of nesting becomes a double underscore, because a colon does not work in environment variable names on every platform.
Cors__Origins__0
Arrays
Each item of an array gets its position as a key, starting at 0.
LOGGING__LOGLEVEL__DEFAULT
Overrides
.NET reads environment variables after appsettings.json, so they replace its values. Names are not case sensitive.
MYAPP_Jwt__Issuer
Prefix
With AddEnvironmentVariables("MYAPP_"), .NET reads only the variables that start with the prefix and drops the prefix from the name.