You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Error: unable to build authorizer for Resource Manager API: could not configure AzureCli Authorizer: could not parse Azure CLI version: launching Azure CLI: exec: "az": executable file not found in %PATH%
│
│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on main.tf line 15, in provider "azurerm":
│ 15: provider "azurerm" {
provider "azurerm" { ## <===== this is line 15
features {}
}
data "azurerm_client_config" "current" {}
========================================
Steps to Reproduce
step 1
terraform init
Terraform has been successfully initialized!
step 2
terraform plan
you get it...
│ Error: unable to build authorizer for Resource Manager API: could not configure AzureCli Authorizer: could not parse Azure CLI version: launching Azure CLI: exec: "az": executable file not found in %PATH%
│
│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on main.tf line 15, in provider "azurerm":
│ 15: provider "azurerm" {
│
╵
╷
│ Error: unable to build authorizer for Resource Manager API: could not configure AzureCli Authorizer: could not parse Azure CLI version: launching Azure CLI: exec: "az": executable file not found in %PATH%
│
│ with module.core.provider["registry.terraform.io/hashicorp/azurerm"],
│ on modules\core\main.tf line 15, in provider "azurerm":
│ 15: provider "azurerm" {
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
garra1109
changed the title
Bug Report
Error: unable to build authorizer for Resource Manager API
Dec 14, 2024
Community Note
Versions
terraform:
Terraform v1.9.5
azure provider:
version = "~> 3.107"
module:
version = "6.2.0"
Description
Hi Everyone
I am trying to use the caf-enterprise-scale module to deploy the landing zone structure. I have copied the templates below.
https://github.com/Azure/terraform-azurerm-caf-enterprise-scale/wiki/%5BExamples%5D-Deploy-using-multiple-module-declarations-with-orchestration
After I created those files and folders and tried to run terraform plan, but it was an error that as the below contents
│ Error: unable to build authorizer for Resource Manager API: could not configure AzureCli Authorizer: could not parse Azure CLI version: launching Azure CLI: exec: "az": executable file not found in %PATH%
│
│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on main.tf line 15, in provider "azurerm":
│ 15: provider "azurerm" {
Could someone help me to take a look into this?
Thanks a lot
Describe the bug
my main.tf
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.107"
}
}
}
provider "azurerm" { ## <===== this is line 15
features {}
}
data "azurerm_client_config" "current" {}
========================================
Steps to Reproduce
terraform init
Terraform has been successfully initialized!
terraform plan
│ Error: unable to build authorizer for Resource Manager API: could not configure AzureCli Authorizer: could not parse Azure CLI version: launching Azure CLI: exec: "az": executable file not found in %PATH%
│
│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on main.tf line 15, in provider "azurerm":
│ 15: provider "azurerm" {
│
╵
╷
│ Error: unable to build authorizer for Resource Manager API: could not configure AzureCli Authorizer: could not parse Azure CLI version: launching Azure CLI: exec: "az": executable file not found in %PATH%
│
│ with module.core.provider["registry.terraform.io/hashicorp/azurerm"],
│ on modules\core\main.tf line 15, in provider "azurerm":
│ 15: provider "azurerm" {
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: