-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Azure CLI task fails with AADSTS700024 after 5 minutes #28737
Copy link
Copy link
Closed
Labels
AADAuto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
AADAuto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
MSAL introduced a regression in 1.27.0 (AzureAD/microsoft-authentication-extensions-for-python#127, AzureAD/microsoft-authentication-library-for-python#644) which is adopted by Azure CLI 2.59.0 (#28556).
This regression makes MSAL's
ConfidentialClientApplicationbypassmsal_extensions.token_cache.PersistedTokenCache, so access tokens are no longer retrieved from the token cache. Instead, every command now retrieves a new access token from the AAD Security Token Service (STS). Any commands fails withAADSTS700024after the ID token expires (5 minutes on GitHub Actions, 10 minutes on Azure DevOps).Originally posted by Jiashuo Li (@jiasli) in #28708 (comment)