Azure Powershell error: Authentication Failed: A security token exception occurred for the received JWT token


Issue:
When running Azure Powershell cmdlets like Get-AzureVM, user gets the following error:
Authentication Failed: A security token exception occurred for the received JWT token."

Resolution:
1.Close the Azure Powershell window
2.Delete the XML files in %appdata%\Windows Azure Powershell.
3.Open Azure Powershell and run Add-AzureAccount.

 

Comments (1)

  1. Richard H says:

    What do you do when that doesn't work?

Skip to main content