In my local windows pc I have Azure CLI and Terraform.
I am logged into Azure CLI.
az account show shows my logged in user as isDefault = true
I am able to connect with Azure resources, no hickups.
I run terraform plan it throws me this error:
Error: building account: could not acquire access token to parse claims: running Azure CLI: exit status 1: ERROR: Account has previously been signed out of this application.. Status: Response_Status.Status_AccountUnusable, Error code: 0, Tag: 540940121
I ran az account get-access-token and token is there and valid
I ran az ad signed-in-user show it doesn't shows the currently logged in user
The above issues are only in my local Windows 11 PC at home.
It's not a company laptop. Not domain joined. No network restrictions.
I have tried:
- az clear; az login; az login --tenant; az login --scope;
- uninstalling and installing Azure CLI
- deleting .azure folder
- deleting
Will appreciate your support as it's stopping me to use VS Code to work with Terraform.
Thanks,
Gagan