I try to create cluster aks hci (aks hybrid) with terraform i use this provisioner “local-exec”
this my main.tf
resource "null_resource" "test_terraform" { provisioner "local-exec" { command = "New-AksHciCluster -name ${var.cluster_name} -nodePoolName ${var.nodepool_name} -nodeCount ${var.node_count} -osType ${var.os_type} && Connect-AzAccount && Enable-AksHciArcConnection -name ${var.cluster_name}" } }
i got this probleme Error running command 'New-AksHciCluster -name test-terraform -nodePoolName node1 -nodeCount 1 -osType Linux && Connect-AzAccount && │ Enable-AksHciArcConnection -name test-terraform': exit status 1. Output: 'New-AksHciCluster' n’est pas reconnu en tant que commande interne │ ou externe, un programme exécutable ou un fichier de commandes.
commande New-AksHciCluster execute normaly in my powershell
any solution or there is any another solution to create aks hybrid locale in my infrastucture
chaila is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.