When I run Terraform Plan I am getting the following error message.
Error building AzureRM Client: Error populating Client ID from the Azure CLI: No Authorization Tokens were found
I ran 'az login' to log in and 'az account set --subscription' to set the right subscription.
I saw other postings and tried running 'az account get-access-token' and it returns the accessToken without any errors.
terraform {
# backend "azurerm" {
# key = "terraform.tfstate"
# }
required_version = ">= 0.12"
}
provider "azurerm" {
version = "= 1.31.0"
skip_provider_registration = true
}
Terraform and Az cli versions below
$ az --version azure-cli 2.38.0
$ terraform --version
Terraform v0.12.31
+ provider.azurerm v1.31.0