Hi @BH Prem Kishore ,
Thanks for reaching out.
When logging into the Azure CLI, the platform retains access and refresh tokens to activate the user session.
The access token's duration is generally short, typically lasting for one hour. In contrast, refresh tokens lifespan is 90 days in most scenarios, except for Single Page Applications, where they remain valid for 24 hours.
During this 90-day period, refresh tokens automatically renew themselves with a new token each time they are used, eliminating the need for logins to CLI interactively.
Starting from January 30, 2021, administrators no longer possess the ability to modify these token lifetimes. (Thanks for bringing this up, I will update the document for the same)
If your refresh token remains inactive for over 90 days and subsequently is revoked, the CLI will notify you, prompting you to re-initiate the sign-in process by entering the credentials again.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.