Using the Azure Portal

  1. Navigate to your app service and find configuration under settings.
  2. Click + New application setting
  3. Enter the name of the setting (variable your app will call)
  4. Enter the value (in this example the name of the DB)
  5. After entering your value click OK
  6. Click the save icon at the top of the application settings page. This will also restart the app.
  • Using Azure CLI
  • The base command is: az webapp config appsettings
  • When creating a new setting or updating an existing setting use set: az webapp config appsettings set --resource-group MyResourceGroup --name MyAppName --settings DATABASE_NAME=wp
  • To get a list of current settings use list: az webapp config appsettings list --name MyAppName --resource-group MyResourceGroup
  • To remove an app setting use delete: az webapp config appsettings delete --name MyAppName --resource-group MyResourceGroup --setting-names {space separated list of settings names}