Pcornel
Cloud · Microsoft Azure

Azure Key Vault

Cheat sheet · https://pcornel.dk/topic.php?topic=7002

Back to the Topic

Answer

Azure Key Vault stores secrets (passwords, connection strings), cryptographic keys and certificates, and controls who can read or use them. Access is authorized with Azure RBAC (recommended; the default for vaults created with API version 2026-02-01 or later) or legacy vault access policies.

Remember

Control plane (manage the vault) and data plane (read a secret, use a key) are authorized separately. Soft delete is always on and keeps deleted items recoverable for 7–90 days (90 by default, fixed at creation). Purge protection, once enabled, can never be disabled.

First checks

  • az keyvault show -n <vault> — permission model, soft delete, purge protection, network rules.
  • az role assignment list --scope <vault-id> — who has data-plane roles.
  • az keyvault secret list --vault-name <vault> — can this identity list secrets?
  • az keyvault list-deleted — soft-deleted vaults holding a name.

Commands

nslookup

Verify in this order

caller identity → Entra ID token → vault network rules / private endpoint → authorization (RBAC role or access policy) → object state (enabled, expiry, deleted) → operation

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=7002

Confirmation

Confirm action

Continue?