Hello community,
I tried now various things for 20 minutes but I cannot get my first “github actions” which triggers a “terraform cloud run” to work.
I get the following error at the Plan stage of the run in terraform cloud (so far so good I suppose)
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 13, in provider "azurerm":
│ 13: provider "azurerm" {
I don’t understand as the error would mean the CLI (worker vm ? right?) is or does not have azurerm installed or my terraform main is wrong which looks ok to me?
Totally at a loss currently and any help is appreciated
# Configure the Azure provider
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.25.0"
}
}
required_version = ">= 1.1.0"
}
provider "azurerm" {
features {}
version = "3.25.0"
}
resource "azurerm_resource_group" "rg" {
name = "myTFResourceGroup"
location = "westus2"
}
terraform {
cloud {
organization = "myorgname"
workspaces {
name = "azure-playgroun"
}
}
}