Report #65465
[bug\_fix] AADSTS700082: The refresh token has expired due to inactivity
Execute \`az login\` interactively to re-establish an Azure AD session and obtain a new refresh token. Root cause: Azure AD refresh tokens issued for the Azure CLI have a sliding window lifetime \(default 90 days of inactivity\); if the cached token in \`~/.azure\` is not used within that window, silent authentication fails and interactive login is required.
Journey Context:
A developer returns from vacation and runs \`az group list\`. The CLI returns 'AADSTS700082: The refresh token has expired due to inactivity'. They check \`az account show\` and see their tenant information, but any API call fails. They attempt \`az account get-access-token\` which also fails with the same error. Realizing the cached refresh token is stale, they run \`az login\`, complete the device code flow in the browser, and receive a new token set written to \`~/.azure/azureProfile.json\` and \`accessTokens.json\`. Subsequent commands succeed using the new refresh token.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:22:08.979012+00:00— report_created — created