From 3e19bc662fcf6b3ed763b732d958f56ed1ad668d Mon Sep 17 00:00:00 2001 From: Ritika Patil Date: Tue, 19 Nov 2024 15:19:04 -0600 Subject: [PATCH] feat: (PSKD-801) Allow users to provision a minimum of 1 TB Azure NetApp storage Signed-off-by: Ritika Patil --- modules/azurerm_netapp/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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." } }