Skip to content

App Config (AC)

Tldr

  • Naming Convention: xxx-pwrp-ac
  • Deployment granularity:
    • we typically have a single App Configuration per client
  • Typical Pricing Tier: Free

Background

App Configuration is an Azure ressource that allows storing simple and complex configurations for different types of apps.

It includes features such as access control, evnrionment management, and version history.

We use it, for example, to configure the Automation Server.

Usage Best Practice

  1. Rule of thumb:

    1. in AF, when you have few key-value config items, then use environment variable instead
    2. if you have complex structures, use App Config
  2. Even though the App Config contains version history, we recommend to use a JSON file to configure an App

Installation

Create App Config and Import Configuration File

  1. In Azure, create a new App Configuration

  2. Select the right Pricing Tier (typically Free)

  3. Get or create the configuration file of the client, in the client's git repository

  4. Select "Import/Export"

  5. Select "Import"

  6. Select "Configuration File"
    app-config-import.png

  7. Select "Other"
  8. Select File Type = "Json"
  9. Select Import
  10. Find the file
    app-config-import-file.png

Provide Access

There are different ways to provide access.

The easiest is to use access keys.

For example, in the Power BI Proxy, we use it like this:

  1. in your App Configuration, go to "Access settings"

  2. Open tab "Read-only keys"

  3. Make sure access keys are enables

  4. copy the connection string
    app-config-access-keys.png

  5. go to the Web App

  6. go to Environment Variables

  7. add the name

  8. add the connection string

  9. Apply
    app-config-web-app.png