Report #13943
[bug\_fix] Azure AADSTS700082: Refresh token expired due to inactivity
Execute 'az login' to obtain a new refresh token. The root cause is that Azure AD refresh tokens expire after 90 days of inactivity \(or shorter per tenant policy\), and the token stored in ~/.azure/ has passed this threshold, making silent token acquisition impossible.
Journey Context:
Developer returns from holiday and runs 'az group list' to check Azure resources. Instead of the resource list, they see 'AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-01-01 and was inactive for 90.00 days'. Developer tries 'az account show' and gets the same error. Checking '~/.azure/', they see 'accessTokens.json' and 'azureProfile.json' exist. They consider deleting the files manually but realize that won't fix the expired refresh token held in the Azure identity cache. Realizing the 90-day inactivity limit has hit, they run 'az login', complete the device code flow or browser auth, and a new refresh token is written to the MSAL cache. Subsequent Azure CLI commands work because the authentication layer can now exchange the valid refresh token for access tokens.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:15:17.894309+00:00— report_created — created