Store and retrieve settings with Azure App Configuration
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Developing AI Cloud Solutions on Azure premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- What the store holds, and what decides how a value is read
- Labels: one key name, a different value per environment
- The provider is not the SDK client
- Key Vault references: the store holds a pointer, your app makes the call
- Refresh: the provider polls, and something has to trigger the poll
- Feature flags: stored like a key-value, read like nothing else
- Feature filters: on, but only when a condition holds
- Snapshots: a named, immutable composition
- Archive, recover, expire: the snapshot lifecycle
- Point-in-time restore: revision history is a different mechanism
- Telling the scenarios apart
The kinds of key-value, and what turns each one into a usable value
| Kind of key-value | Content type | What the value holds | Who resolves it | What a refresh does |
|---|---|---|---|---|
| Plain setting | empty (treated as a string) | The literal string | Nobody; the provider hands it over as-is | Reloads it if the change is detected |
| JSON key-value | `application/json` or any `application/…+json` media type | A JSON document, object or primitive | The provider deserializes it into a Python object | Reloads and re-deserializes it |
| Key Vault reference | `application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8` | The secret identifier (URI), never the secret | The provider, by calling Key Vault with a credential you supply | Re-reads the secret only on `secret_refresh_interval`, since the URI itself rarely changes |
| Feature flag | `application/vnd.microsoft.appconfig.ff+json;charset=utf-8` | The flag's JSON: `id`, `enabled`, `conditions` | The provider loads it; `FeatureManager.is_enabled` evaluates it | Re-reads every loaded flag, but only if `feature_flag_refresh_enabled=True` |
| Snapshot reference | `application/json; profile="https://azconfig.io/mime-profiles/snapshot-ref"; charset=utf-8` | A JSON object naming a snapshot | The provider, by loading that snapshot's key-values | Repoints the app at a different snapshot when the reference changes |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- Understand Azure App Configuration key-value store
- Azure App Configuration best practices
- Python configuration provider for Azure App Configuration
- Use JSON content-type for key-values in Azure App Configuration
- Access Azure App Configuration using Microsoft Entra ID
- Azure App Configuration support for configuration files
- Tutorial: use Key Vault references in an ASP.NET Core app
- Azure App Configuration Python provider client library README
- Tutorial: use dynamic configuration in an ASP.NET Core app
- Use dynamic configuration in Python
- Use Azure App Configuration to manage feature flags
- Understand feature management using Azure App Configuration
- azure.appconfiguration.provider package reference
- Python feature flag management
- Snapshots in Azure App Configuration
- How to manage and use snapshots in Azure App Configuration
- Snapshot references in Azure App Configuration
- Retrieve key-values from a point-in-time