While trying to execute terraform plan locally after an az login we sometimes envounter below error.
│ Error: populating Resource Provider cache: listing Resource Providers: loading results: authorizing request: 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
│ Please explicitly log in with:│ az login --scope https://management.azure.com/.default
│ with provider["registry.terraform.io/hashicorp/azurerm"],│ on main.tf line 17, in provider "azurerm":│ 17: provider "azurerm" {
How to resolve?
Delete all the files under the folder. C:\Users<username>\AppData\Local\Microsoft\IdentityCache
With that you can do an az login and then execute terraform plan without any issue.
No comments:
Post a Comment