Closed EppO closed 1 week ago
Hi @EppO,
Thank you for taking time to report this issue.
In 4.0 release, the AKS migrates to stable API, and only GA features will be supported in azurerm provider, more details please see: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#aks-migration-to-stable-api
Here's an example of how to use azapi provider to manage this feature:
resource "azapi_resource" "cluster" {
type = "Microsoft.ContainerService/managedClusters@2024-06-02-preview"
parent_id = "/subscriptions/00000/resourceGroups/example"
name = "example"
location = "westus"
identity {
type = "SystemAssigned"
identity_ids = []
}
body = {
properties = {
agentPoolProfiles = [
{
count = 1
mode = "System"
name = "default"
vmSize = "Standard_DS2_v2"
},
]
dnsPrefix = "example"
networkProfile = {
networkPlugin = "azure"
networkPolicy = "cilium"
networkDataplane = "cilium"
advancedNetworking = {
observability = {
enabled = true
tlsManagement = "Managed"
}
security = {
fqdnPolicy = {
enabled = true
}
}
}
}
}
}
}
Oh I missed that, thank you for bringing that to my attention. That's unfortunate, I use AKS VNET integration and couple of other preview features that I was managing with azurerm_kubernetes_cluster
in AzureRM 3.x. Is there a way to keep managing the AKS resource with azurerm_kubernetes_cluster
and activate the AKS preview features with azapi_update_resource
(and not azapi_resource
)?
If that works, ideally I would use one azapi_update_resource
per preview feature that I would ditch once it goes GA and gets implemented in azurerm_kubernetes_cluster
.
As mentioned above by @ms-henglu this is a preview feature in AKS, so I am going to close this for now as a feature request. If it gets added to the AKS Stable API, we can reopen this request or you can create a new one. Thanks!
Is there an existing issue for this?
Community Note
Description
Add support for ACNS that brings Advanced Network Observability and also support for FQDN-based network policies
New or Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Potential Terraform Configuration
References
https://learn.microsoft.com/en-us/azure/aks/advanced-network-observability-cli