Skip to content

Configuration

Robert Brands edited this page Jun 5, 2020 · 10 revisions

The settings for the application are stored as usual in appsettings.json. To avoid storing secrets, keys or other sensitive information in the settings file see article https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets. Sensitive information will be left empty or marked with a comment in the application settings file, and it is expected to set the config values via the SecretManager for development and via environment in the App Service.

These are the values to be set:

  • AzureAd:Domain
  • AzureAd:TenantId
  • AzureAd:ClientId
  • ASPNETCORE_ENVIRONMENT - Development/Staging depending on slot. This setting should be sticky to the corresponding slot. For environments used see https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments
  • SiteDB:DatabaseName - Name of Cosmos DB to be used
  • SiteDB:CollectionName
  • SiteDB:EndPointUrl
  • SiteDB:AuthorizationKey
  • APPINSIGHTS_INSTRUMENTATIONKEY

For development with Visual Studio environment variables can be set on project settings page "Debugging". For Azure App Service set these values in "Settings/Configuration/Application Settings". Set it on slots dev and staging.

Clone this wiki locally