Symptoms: auth failures downstream after "nothing changed", or `SecretExpired` / 403 on get.

Diagnosis:

```
az keyvault secret show --vault-name [vault] --name [secret]   --query "{expires: attributes.expires, enabled: attributes.enabled, created: attributes.created}"
```

1. **Expired.** `attributes.expires` in the past. Rotate: `az keyvault secret set` creates a new version; the old one stays for history. Then update the consumer, or better, have the consumer always read "latest".
2. **Disabled, not expired.** A rotation gone wrong sometimes disables the newest version instead of the old one. `get_secret` without a version then returns the previous enabled version with no error. If downstream auth fails but the vault "has" the secret, check the enabled flag on the latest version.
3. **Near-expiry automation.** Key Vault emits `Microsoft.KeyVault.SecretNearExpiry` Event Grid events 30 days before expiry (configurable via lifetime actions). Wire it to a rotation function instead of discovering expiry from an outage.
4. **Access policy expiry.** In the access-policy model, the policy itself does not expire, but the service principal's secret used to authenticate TO the vault does (AADSTS7000215). If the vault calls worked yesterday, suspect the caller's credential, not the stored secret.
5. **Purge protection vs rotation.** With purge protection on, old versions linger; that is fine. Do not purge to "clean up" unless the secret value itself is compromised.

Verify: after rotation, read the secret with the consumer's identity and confirm the version id matches the newest enabled version.