diff --git a/examples/startup/main.tf b/examples/startup/main.tf index 7246ce33..0595f19e 100644 --- a/examples/startup/main.tf +++ b/examples/startup/main.tf @@ -40,7 +40,7 @@ module "aks" { prefix = random_id.name.hex resource_group_name = local.resource_group.name - kubernetes_version = "1.24" # don't specify the patch version! + kubernetes_version = "1.26" # don't specify the patch version! automatic_channel_upgrade = "patch" agents_availability_zones = ["1", "2"] agents_count = null @@ -107,4 +107,7 @@ module "aks" { agents_tags = { "Agent" : "agentTag" } + depends_on = [ + azurerm_subnet.test, + ] } diff --git a/examples/startup/variables.tf b/examples/startup/variables.tf index c784b72e..3edb955c 100644 --- a/examples/startup/variables.tf +++ b/examples/startup/variables.tf @@ -25,4 +25,4 @@ variable "managed_identity_principal_id" { variable "resource_group_name" { type = string default = null -} \ No newline at end of file +} diff --git a/examples/with_acr/main.tf b/examples/with_acr/main.tf index 3826e279..bf9c4ff1 100644 --- a/examples/with_acr/main.tf +++ b/examples/with_acr/main.tf @@ -55,7 +55,7 @@ module "aks" { prefix = "prefix-${random_id.prefix.hex}" resource_group_name = local.resource_group.name - kubernetes_version = "1.24" # don't specify the patch version! + kubernetes_version = "1.26" # don't specify the patch version! automatic_channel_upgrade = "patch" attached_acr_id_map = { example = azurerm_container_registry.example.id @@ -67,4 +67,4 @@ module "aks" { sku_tier = "Standard" rbac_aad = false vnet_subnet_id = azurerm_subnet.test.id -} \ No newline at end of file +}