Forum Discussion
TonyRedmond
May 29, 2023MVP
Azure AD Access Token Lifetimes and Long-running PowerShell Scripts
Sometimes, long running PowerShell scripts encounter the problem of Azure AD access token lifetime expiration. In other words, the default lifetime of tokens issued by Azure AD is too short to allow the script to complete before the token expires. Two solutions exist. Use a token lifetime policy to prolong access token lifetimes or check in code for potential expiration and renew when necessary.
https://office365itpros.com/2023/05/29/azure-ad-access-token-lifetime/
No RepliesBe the first to reply