Key Vault: the database password does not belong in code
Create a secure Key Vault, store a secret and give the app read-only access to secrets.
The problem
Resource group rg-payments and the managed identity "app-backend" already exist. The vault uses RBAC for data access.
Mission
The (fictional) payments app keeps the database password in a config file. Move it to Key Vault and let the app read it without over-granting.
4 objectives inside the lab. You meet them as you play: no steps or solutions are shown here.
What you will learn
- Get secrets out of code
- Key Vault data roles
- Purge protection and network
Specialty and certification
Azure · AZ-900
Official objectives it practices (1)
- AZ-900: Azure identity, access, and security
Aligned with public exam objectives. Not official material and no complete coverage is implied.
On the roadmap Microsoft Azure · Azure concepts and services
With a planCheck the stage: domain testThe AZ-900 domain test needs a paid plan. Free: AZ-900 diagnostic or the lab Resource groups: get organized before it hurts.
What it is and is not
Deterministic JG Labs model: rules and errors based on official documentation. Not the real cloud.
Official documentation
- About Azure Key Vault — Microsoft Learn (reviewed 2026-11-15)
- Provide access to Key Vault with Azure RBAC — Microsoft Learn (reviewed 2026-11-15)
- Azure Key Vault soft-delete and purge protection — Microsoft Learn (reviewed 2026-11-15)