Lesson 1 of 3 Centralized Configuration with Azure App Configuration

Understanding Azure App Configuration

This lesson explains why configuration is centralized, key-values and labels, Key Vault references, tiers and access control.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how App Configuration complements Key Vault and app settings.
  • Describe keys, labels and content types.
  • Explain how Key Vault references are resolved.
  • Compare the App Configuration tiers.

Why centralize configuration

An AI solution made of an API, several workers and some functions has settings that many components share: the embedding model deployment name, the vector index name, batch sizes, timeouts, the endpoint of the search service. When each component keeps its own copy in app settings, a change means editing every component and restarting each one, and copies drift apart. Azure App Configuration keeps these settings in one store that every component reads, with history, labels for environments, and the ability to change values while applications run.

App Configuration complements rather than replaces other stores. Key Vault remains the place for secrets, with hardware-backed protection, rotation and secret-level access control; App Configuration can hold references to Key Vault secrets. App settings on a host remain useful for the few values a component needs to find App Configuration itself, such as the store's endpoint.

Sort into groups

Where does each value belong?

Exam skills 4.1.2 · 4.1.1

Decide where each value should be stored.

Log in to try this activity Interactive activities are free with an account.

Key-values, labels and content types

A store holds key-values. A key is a string, often hierarchical with a separator such as a colon, for example Retrieval:TopK or Embeddings:Deployment. Each key-value can have a label, and the pair of key and label identifies it, so the same key can hold different values for different labels. Labels typically represent environments (dev, test, prod), regions or versions; a key-value without a label has the null label.

Each key-value can also have a content type, such as application/json for structured values, and tags. A single key-value, including its key, label and metadata, can be up to 10 KB. Every change is recorded in a revision history, which supports point-in-time comparison and restoring earlier values.

az appconfig kv set --name STORE --key Retrieval:TopK --value 5 --label prod --yes
az appconfig kv set --name STORE --key Retrieval:TopK --value 10 --label dev --yes
az appconfig kv set --name STORE --key Retrieval:Filters --value '{"minScore":0.75}' \
  --content-type application/json --label prod --yes
az appconfig kv list --name STORE --key "Retrieval:*" --label prod -o table

The following diagram shows a single App Configuration key and the services that load it in each environment.

One App Configuration key for the embedding deployment name, with labels for test and production. Every service loads its label's value through the provider with a managed identity that holds App Configuration Data Reader, and refreshes it dynamically, so a model switch is one change in one place.
Test services load the test label in the same way.
True or false

Key-values and labels

Exam skills 4.1.2

Decide whether each statement about App Configuration key-values is true.

Log in to try this activity Interactive activities are free with an account.

Key Vault references

A Key Vault reference is a key-value whose value is the URI of a Key Vault secret, with a special content type. App Configuration stores only the URI. When an application loads configuration with the provider library, the provider sees the reference and retrieves the secret from Key Vault using the application's own credential; App Configuration never reads the secret. The application's identity therefore needs both App Configuration Data Reader on the store and Key Vault Secrets User on the vault.

az appconfig kv set-keyvault --name STORE --key Database:Password --label prod \
  --secret-identifier https://VAULT.vault.azure.net/secrets/db-password --yes
Select all that apply

Key Vault references in App Configuration

Exam skills 4.1.2 · 4.1.1

Identify the true statements about Key Vault references stored in App Configuration.

Log in to try this activity Interactive activities are free with an account.

Tiers and access control

App Configuration has four tiers, which differ in request quotas, storage and features. All tiers include key-values, feature flags, Key Vault references, snapshots, Microsoft Entra authentication and managed identity support.

Free
Request quota1,000 per day
Storage10 MB
SLANone
Notable featuresThree stores per region per subscription
Choose when Evaluation
Developer
Request quota6,000 per hour
Storage500 MB
SLANone
Notable featuresPrivate Link
Choose when Low-volume development and test
Standard
Request quota30,000 per hour
Storage1 GB
SLA99.9%
Notable featuresPrivate Link, geo-replication, soft delete, customer-managed keys
Choose when Medium-volume production
Premium
Request quotaNo quota
Storage4 GB
SLA99.9%, higher with geo-replication
Notable featuresAs Standard, with a replica included and higher throughput
Choose when High-volume or enterprise production

When a store exceeds its quota or throughput, requests receive HTTP 429; the provider libraries cache settings and retry, which keeps occasional throttling harmless. Data access uses Microsoft Entra roles: App Configuration Data Reader for applications and App Configuration Data Owner for pipelines and administrators that write values. Access keys exist but can be disabled. A separate store per environment gives the strongest isolation; labels in one store are simpler when environments do not need separate permissions.

Scenario questions

Which App Configuration tier?

Exam skills 4.1.2

Choose the lowest App Configuration tier that fits each requirement.

Log in to try this activity Interactive activities are free with an account.
Worked example

One setting for many services

Six services use the name of the embedding model deployment. Each holds it in its own app settings, and when the team switched models, two services were missed and wrote embeddings from the old model, corrupting search results. Test and production use different deployments, and changes must not require redeployment.

The deployment name belongs in App Configuration as one key, such as Embeddings:Deployment, with labels test and prod. Every service loads its label's value with the provider, using a managed identity with App Configuration Data Reader, and refreshes it dynamically. A future model switch is one change in one place.

Copying the value into a shared Key Vault secret would misuse the vault for a non-secret setting and lose labels and feature management. A deployment pipeline that rewrites six app settings still restarts six services and can still miss one.

Check yourself

When an application loads a Key Vault reference from App Configuration, which identity reads the secret?

Show answer

The application's own identity, through the provider. App Configuration stores only the URI, so the application needs Key Vault Secrets User as well as App Configuration Data Reader.

Exam Tips

Remember for the exam

  • A key-value is identified by key and label; labels usually represent environments.
  • Key Vault references store only the secret URI; the application's identity reads the secret.
  • Applications need App Configuration Data Reader; writers need Data Owner.
  • Free tier allows 1,000 requests per day; quota overruns return HTTP 429.