Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Compare

Key Vault vs App Configuration

30-second answer

Key Vault stores secrets, keys and certificates, with versions, expiry dates and rotation (scheduled for keys, event-driven for secrets). App Configuration stores ordinary settings and feature flags with labels and live refresh. Put the secret in Key Vault and a Key Vault reference in App Configuration, so apps read everything from one place.

Simulate it »

Side by side

↔ Swipe the table to see every column.

Key VaultApp Configuration
HoldsSecrets, keys, certificatesKey-values, feature flags, snapshots
VersionsEvery secret version keptRevision history and snapshots
EnvironmentsUsually a vault per environmentLabels (dev, test, prod) in one store
Refresh in appRead latest version or cache with expiryDynamic refresh, sentinel key
AccessManaged identity + Key Vault Secrets UserManaged identity + App Configuration Data Reader

Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.

Which one should I pick?

  • Key Vault

    Pick it when the value would hurt if it leaked: passwords, API keys, connection strings

  • App Configuration

    Pick it when the value is a setting, a feature flag or differs per environment

Simulate it

3D Secure and observe: Key Vault, App Configuration, OpenTelemetry and KQL Add a setting, a flag and a Key Vault reference.

🖱️ Drag to rotate · scroll or pinch to zoom

Loading the 3D scene…
</> Embed

Embed this simulation

Free for trainers, teachers and bloggers. Paste this into your page:

App Configuration

Azure App Configuration holds settings as key-values with optional labels (dev, prod) and feature flags. It can point at Key Vault with Key Vault references. Apps refresh settings without restarting, often by watching a sentinel key.

Read this tour as text
  1. Secrets don’t belong in code. A connection string in config.py ends up in git, in screenshots and in old laptops. Azure Key Vault stores secrets, keys and certificates. The app reads them at run time with a managed identity, so there’s no password to steal.
  2. Versions and rotation. Each time you set a secret, Key Vault keeps a new version. Apps that ask for the secret without a version get the latest. Rotation creates a new version: for keys, a rotation policy does it on a schedule; for secrets, Key Vault raises a SecretNearExpiry event through Event Grid and your function sets the new value. Apps pick it up without a redeploy.
  3. App Configuration. Azure App Configuration holds settings as key-values with optional labels (dev, prod) and feature flags. It can point at Key Vault with Key Vault references. Apps refresh settings without restarting, often by watching a sentinel key.
  4. A trace across services. One user question goes web API → queue → worker → Cosmos DB → model. OpenTelemetry gives every hop a span that shares one trace ID, so you see the whole journey. The Azure Monitor OpenTelemetry Distro sends it to Application Insights.
  5. Find the slow span. The trace shows each span’s duration. Here the model call is fine, but a Cosmos DB query without a partition key takes 2.4 seconds. Custom spans and attributes (like tenant.id) make the story even clearer.
  6. Logs live in tables. Application Insights and Log Analytics store telemetry in tables: requests, dependencies, exceptions, traces, plus metrics. Container Apps logs land in ContainerAppConsoleLogs_CL, AKS in ContainerLogV2.
  7. Ask with KQL. Kusto Query Language (KQL) reads top to bottom through pipes: requests | where success == false | summarize count() by bin(timestamp, 5m) | render timechart. where filters, summarize aggregates, project picks columns, join combines tables.
  8. Turn a query into an alert. A log search alert runs a KQL query on a schedule and fires when the result crosses a threshold. A metric alert watches a number like CPU or queue length. Either can email the team or call a webhook.

Questions people ask

Should I store secrets directly in App Configuration?

No. Store the secret in Key Vault and add a Key Vault reference in App Configuration. The app needs read access to both.

Do apps need a key to reach either service?

No. Use a managed identity and Azure RBAC roles, so there is no credential to manage.

Learn each one properly

More comparisons

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.