Hello,
I am deploying resource to azure from bitbucket pipeline with terraform code.
when applying terraform plan , i am getting this error. I have no clue how to fix it.
terraform plan -out=tfplan
Planning failed. Terraform encountered an error while generating this plan.
Error: building AzureRM Client: please ensure you have installed Azure CLI version 2.0.79 or newer. Error parsing json result from the Azure CLI: launching Azure CLI: exec: "az": executable file not found in $PATH.
with provider["registry.terraform.io/hashicorp/azurerm"],
on main.tf line 14, in provider "azurerm":
14: provider "azurerm" {
FYI , I have mentioned these in variable section. still it gives me error.
variable "ARM_SUBSCRIPTION_ID" {
}
variable "ARM_CLIENT_ID" {
}
variable "ARM_CLIENT_SECRET" {
}
variable "ARM_TENANT_ID" {
}
Please suggest me some solution