diff --git a/modules/azurerm_netapp/main.tf b/modules/azurerm_netapp/main.tf index 1182da8..02be710 100644 --- a/modules/azurerm_netapp/main.tf +++ b/modules/azurerm_netapp/main.tf @@ -23,8 +23,8 @@ resource "azurerm_netapp_pool" "anf" { lifecycle { precondition { - condition = var.size_in_tb != 1 || var.network_features == "Standard" - error_message = "You can only take advantage of the 1-TiB minimum if all the volumes in the capacity pool are using Standard network features. If any volume is using Basic network features, the minimum size is 4 TiB." + condition = var.size_in_tb >= 4 && var.network_features == "Basic" || var.network_features == "Standard" + error_message = "NetApp volumes in pool with size set to less than 4TiB must be allocated to standard network. If the volume is using Basic network features, then the minimum size must be 4 TiB." } }