Score:0

Feature Microsoft.ContainerService/AutoUpgradePreview is not enabled in AKS

it flag

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" {
│ 
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.