Terraform plan followed by successful azure login returns the below error. Not sure why Terraform complains about invalid credentials while refreshing state even though the credentials were successfully executed.
terraform plan
`[0m[1mRefreshing Terraform state in-memory prior to plan...[0m The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage.
[0m
[31m
[1m[31mError: [0m[0m[1mError refreshing state: 1 error occurred:
* provider.azurerm: Error building AzureRM Client: Error populating Client ID from the Azure CLI: No Authorization Tokens were found - please re-authenticate using ` `az login`.