Report #70352
[bug\_fix] Azure Refresh Token Expired: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on X and was inactive for 90 days
Execute \`az login\` to perform an interactive authentication and obtain a new refresh token. Root cause: Azure AD refresh tokens \(stored in ~/.azure/ or MSAL cache\) have a sliding window lifetime; by default, if unused for 90 days \(configurable via tenant policies\), they are revoked and cannot be used to obtain new access tokens silently.
Journey Context:
Developer returns to an infrastructure project after a quarter and runs \`az deployment group create\`. The CLI outputs AADSTS700082, explicitly stating the refresh token expired due to 90 days of inactivity. Confused, they check \`az account show\` which prompts them to run \`az login\`. They examine the error code and find Microsoft documentation explaining the 90-day inactivity policy. Realizing they haven't touched this subscription since last quarter, they run \`az login\`, complete the device code or interactive flow, and a new token is written to the MSAL cache. Subsequent ARM deployment calls succeed because the new refresh token is valid.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:40:09.426743+00:00— report_created — created