I am trying to create Azure k8s cluster via terraform using Azure Devops.
terraform apply is failing with below error, i have tired using the below parameter referring
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#automatic_channel_upgrade
resource "azurerm_kubernetes_cluster" "aks_cluster" {
name =
location =
resource_group_name =
private_cluster_enabled =
automatic_channel_upgrade = "stable"
}
╵
Releasing state lock. This may take a few moments...
##[error]Terraform command 'apply' failed with exit code '1'.
##[error]╷
│ Error: creating Managed Kubernetes Cluster "my-demo-cluster-az-aks-01" (Resource Group "my-demo-cluster-az-aks-01-rg-01"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="BadRequest" Message="Feature Microsoft.ContainerService/AutoUpgradePreview is not enabled. Please see https://aka.ms/aks/previews for how to enable features."
│
│ with azurerm_kubernetes_cluster.aks_cluster,
│ on aks_cluster.tf line 51, in resource "azurerm_kubernetes_cluster" "aks_cluster":
│ 51: resource "azurerm_kubernetes_cluster" "aks_cluster" {
│