Thank you for your post!
Error: AADSTS700082
ExpiredOrRevokedGrantInactiveToken - The refresh token has expired due to inactivity. The token was issued on {issueDate} and was inactive for {time}. Expected part of the token lifecycle - the user went an extended period of time without using the application, so the token was expired when the app attempted to refresh it.
From your screenshot, it looks like the token you were issued was from January 31, 2023, since you already tried signing in/out but are still receiving this error within Azure PowerShell:
- Can you see if closing out of the PS window completely then signing back in using Connect-AzAccount helps resolve your issue? This should refresh the access token and allow you to list the certificates in your key vault.
Connect-AzAccount
# Get a new access token
$accessToken = (Get-AzAccessToken -ResourceUrl "https://vault.azure.net").Token
- If this doesn't work, you can try to clear the token cache entirely and then refresh it using Clear-AzContext.
# Clear the token cache
Clear-AzContext -Scope Process
# Connect to your Azure account again
Connect-AzAccount
# Get a new access token
$accessToken = (Get-AzAccessToken -ResourceUrl "https://vault.azure.net").Token
I hope this helps!
If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.
If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.