Hello, This is a very easy module to work with but after deploying AKS cluster but when I try to apply some changes/updates it creates a new cluster.
After debugging I figure out that there are some values that are by default set up as "null" which causing this re-creation.
Check Below screenshots from my plan

As you can see node_taints (this var needs to be added in the module), agents_availability_zones should be [] but as its default value is null so if a user doesn't provide it so resource recreate aks.
If we don't set auto_scaling for the default node pool then max and min pod should be 0 not null and the same goes with network_policy as well.
Please update/add the following variable's default values.
- network_policy = "azure"
- agents_availability_zones = []
- agents_max_count = 0 (also change
0 here)
- agents_min_count = 0
- node_taints= [] (add new var in default_node_pool block)
Hello, This is a very easy module to work with but after deploying AKS cluster but when I try to apply some changes/updates it creates a new cluster.
After debugging I figure out that there are some values that are by default set up as "null" which causing this re-creation.
Check Below screenshots from my plan
As you can see
node_taints(this var needs to be added in the module),agents_availability_zonesshould be[]but as its default value is null so if a user doesn't provide it so resource recreate aks.If we don't set auto_scaling for the default node pool then max and min pod should be
0not null and the same goes withnetwork_policyas well.Please update/add the following variable's default values.
0here)