Error: Error building AzureAD Client: Azure CLI Authorization Profile was not found

Hi All,

I am running terraform plan -var-file=“dev.tfvars”

and see this error:

│ Error: Error building AzureAD Client: Azure CLI Authorization Profile was not found. Please ensure the Azure CLI is installed and then log-in with az login.

│ with provider[“Terraform Registry”],
│ on main.tf line 38, in provider “azuread”:
│ 38: provider “azuread” {

I have tried terraform init -upgrade, changed azurerm version or azuread version or az cli upgrade, none of them worked.
any idea?

Thank you!
Tony