I will send debug log in email as it contains sensitive data.
Error output
RequestId : ff2bee39-ceaa-4598-a875-24657da4d6ae
Message : The access token expiry UTC time '11/13/2020 7:42:16 AM' is earlier than current UTC time '11/13/2020 8:45:53 AM'.
ServerMessage : ExpiredAuthenticationToken: The access token expiry UTC time '11/13/2020 7:42:16 AM' is earlier than current UTC time '11/13/2020 8:45:53 AM'.
(System.Collections.Generic.List`1[Microsoft.Rest.Azure.CloudError])
ServerResponse : {Unauthorized}
RequestMessage : {GET https://management.azure.com/subscriptions?api-version=2019-06-01}
InvocationInfo : {Get-AzSubscription}
Line : Get-AzSubscription
Position : At line:1 char:1
+ Get-AzSubscription
+ ~~~~~~~~~~~~~~~~~~
StackTrace : at Microsoft.Azure.Commands.Profile.Models.SubscriptionClientProxy.<>c.<.ctor>b__2_0(Action`1 subscriptionClientAction, LoggerWriter warning)
at Microsoft.Azure.Commands.Profile.Models.SubscriptionClientProxy.ListAllSubscriptionsForTenant(IAccessToken accessToken, IAzureAccount account, IAzureEnvironment environment)
at Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient.ListAllSubscriptionsForTenant(String tenantId)
at Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient.ListSubscriptions(String tenantIdOrDomain)
at Microsoft.Azure.Commands.Profile.GetAzureRMSubscriptionCommand.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOrAsJob>b__3_0(T c)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
HistoryId : 4
Description
If you login using access token, after it expires, if you login again interactively, any following cmdlet will fall with error:
Steps to reproduce
Work-around
Clear-AzAccount
thenConnect-AzAccount
again.Environment data
Module versions
Debug output
Error output