Settings

+
~

In App Services, app settings are environment variables which are injected into your app on startup. Editing app settings in any way will trigger an app restart. Deployed app settings override any defaults that are set in the appsettings.json file. This allows you to easily use different environment settings in development and deployment.

App Service settings:

You can also configure appsettings from the azure cli:

az webapp config appsettings set --resource-group <group-name> --name <app-name> --settings key1=value1 key2=value2

Connection strings

Similar to standard app settings, connection strings can be configured for your app. For .NET stacks, connection strings set up in Azure portal override properties in the <connectionStrings> group in Web.config.

Bear in mind

In general, it is better for non .NET stacks to use standard app settings for connection strings because of formatting requirements; however, some Azure databases are only backed up alongside your app if they are configured explicitly as connection strings.

You can bulk also bulk edit connection strings like you can app settings:

[
  {
    "name": "name-1",
    "value": "conn-string-1",
    "type": "SQLServer",
    "slotSetting": false
  },
  {
    "name": "name-2",
    "value": "conn-string-2",
    "type": "PostgreSQL",
    "slotSetting": false
  },
  ...
]

At runtime, connection strings are available by name, prefixed with a representation of the type:

For example SQLCONNSTR_name-1 for the first item in the bulk edit example above.

General settings

In Configuration > General setings, you can configure some generic settings for your app: