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 →
az aks addon update -g rg -n aks -a azure-keyvault-secrets-provider --enable-secret-rotation --rotation-poll-interval 2m- 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.
More on AKS and ACR Errors
Pods show `ImagePullBackOff` with `failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://acrshop.azurecr.io/oauth2/token?...: 401 Unauthorized`.Beginner`Failed to pull image "acrshop.azurecr.io/shop/web:v3": ... manifest unknown` or `not found`.Beginner`ImagePullBackOff` with `dial tcp: lookup acrshop.azurecr.io on 168.63.129.16:53: no such host` or connection timeouts to the registry.Advanced`exec /usr/local/bin/python: exec format error` in pod logs right after deploying a new image.BeginnerPods are `Pending`: `0/3 nodes are available: 3 Insufficient cpu. preemption: 0/3 nodes are available: 3 No preemption victims found for incoming pod.`BeginnerCluster autoscaler events show `pod didn't trigger scale-up: 1 max node group size reached` or `NotTriggerScaleUp`.Intermediate