title: Create Azure AKS with Managed Identity using Terraform gives AutoUpgradePreview not enabled error
body: <p>I am trying to create an AKS cluster with managed identity using Terraform. This is my code so far, pretty basic and standard from a few documentation and blog posts I found online.</p>
  <pre><code>terraform {
    required_providers {
      azurerm = {
        source  = &quot;hashicorp/azurerm&quot;
        version = &quot;2.79.1&quot;
      }
    }
  }
  
  provider &quot;azurerm&quot; {
    features {}
  
    use_msi = true
  }
  
  resource &quot;azurerm_resource_group&quot; &quot;rg&quot; {
    name     = &quot;prod_test&quot;
    location = &quot;northeurope&quot;
  }
  
  resource &quot;azurerm_kubernetes_cluster&quot; &quot;cluster&quot; {
    name                = &quot;prod_test_cluster&quot;
    location            = azurerm_resource_group.rg.location
    resource_group_name = azurerm_resource_group.rg.name
    dns_prefix          = &quot;weak&quot;
  
    default_node_pool {
      name       = &quot;default&quot;
      node_count = &quot;4&quot;
      vm_size    = &quot;standard_ds3_v2&quot;
    }
  
    identity {
      type = &quot;SystemAssigned&quot;
    }
  }
  </code></pre>
  <p>And this is the error message that I can't come around to a solution. Any thoughts on it?</p>
  <pre class="lang-sh prettyprint-override"><code>Error: creating Managed Kubernetes Cluster &quot;prod_test_cluster&quot; (Resource Group &quot;prod_test&quot;): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code=&quot;BadRequest&quot; Message=&quot;Feature Microsoft.ContainerService/AutoUpgradePreview is not enabled. Please see https://aka.ms/aks/previews for how to enable features.&quot;
  │ 
  │   with azurerm_kubernetes_cluster.cluster,
  │   on main.tf line 19, in resource &quot;azurerm_kubernetes_cluster&quot; &quot;cluster&quot;:
  │   19: resource &quot;azurerm_kubernetes_cluster&quot; &quot;cluster&quot; {
  │ 
  </code></pre>