We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39d4b22 commit 43e6a55Copy full SHA for 43e6a55
1 file changed
main.tf
@@ -476,6 +476,13 @@ resource "azurerm_kubernetes_cluster_node_pool" "node_pool" {
476
outbound_nat_enabled = each.value.windows_profile.outbound_nat_enabled
477
}
478
479
+
480
+ lifecycle {
481
+ precondition {
482
+ condition = var.agents_type == "VirtualMachineScaleSets"
483
+ error_message = "Multiple Node Pools are only supported when the Kubernetes Cluster is using Virtual Machine Scale Sets."
484
+ }
485
486
487
488
resource "azurerm_log_analytics_workspace" "main" {
0 commit comments