Skip to content

Instantly share code, notes, and snippets.

@shammelburg
Last active July 29, 2019 14:45
Show Gist options
  • Save shammelburg/28601cf89da88decb10293cbba818ff1 to your computer and use it in GitHub Desktop.
Save shammelburg/28601cf89da88decb10293cbba818ff1 to your computer and use it in GitHub Desktop.
Azure App Services appSettings.*.json configuration
When you want to publish your app and using the Development configuration.
By default this loads Production.
Create an app service
Configure
- AppSettings
- Add
- Name = ASPNETCORE_ENVIRONMENT
- Value = Development
- Deployment Slot Settings = true
- Save
When overriding a json kvp,
Configure
- AppSettings
- Add
- Name = Email:Setup
- Value = [email protected]
- Deployment Slot Settings = true
- Save
Note:
When reading other settings from the appSettings.json file, make sure you check the Deployment Slot Settings box.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment