Report #79402
[bug\_fix] AADSTS700082: The refresh token has expired due to inactivity \(Azure CLI\)
Run \`az login\` to re-authenticate and obtain a new refresh token. The root cause is that Azure AD \(Entra ID\) refresh tokens issued to the Azure CLI have a maximum lifetime of 90 days of inactivity \(or 24 hours for certain conditional access policies\). When the refresh token expires, the CLI can no longer obtain new access tokens silently.
Journey Context:
Developer returns from vacation and tries to run \`az aks get-credentials\` or \`az deployment group create\`. The command fails with 'AADSTS700082: The refresh token has expired due to inactivity.' The developer checks \`az account list\` and sees their subscription, but any operation requiring a token fails. They try \`az account clear\` and \`az login\` but still get the error because the old refresh token is cached in \`~/.azure/msal\_token\_cache.json\` or similar MSAL cache location. The developer realizes that unlike AWS access keys, Azure CLI uses OAuth refresh tokens that expire after 90 days of non-use. They run \`az login\` \(or \`az login --tenant\` if specific tenant needed\), complete the device code flow or interactive login, and obtain a new refresh token. The commands work again.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:52:29.572075+00:00— report_created — created