Interview Prep/Azure/AKS and ACR Errors

Rotated a Key Vault secret, but the app still uses the old value.

IntermediateTroubleshootingAKS and ACR Errors
Answer

Likely causes → CSI rotation not enabled, or the app reads the value from an env var (synced Kubernetes Secret) only at startup.

Diagnose → az aks show -g rg -n aks --query addonProfiles.azureKeyvaultSecretsProvider.config; compare the mounted file contents with Key Vault.

Fix →

  1. az aks addon update -g rg -n aks -a azure-keyvault-secrets-provider --enable-secret-rotation --rotation-poll-interval 2m
  2. Read from the mounted file on each use, or trigger a rollout restart (Reloader or a pipeline step)

Prevent → Design apps to reload secrets from files.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR Errors