Skip to content

Commit

Permalink
feat: (PSKD-801) Allow users to provision a minimum of 1 TB Azure Net…
Browse files Browse the repository at this point in the history
…App storage

Signed-off-by: Ritika Patil <[email protected]>
  • Loading branch information
riragh committed Nov 19, 2024
1 parent 9df0eb8 commit 3e19bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/azurerm_netapp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}

Expand Down

0 comments on commit 3e19bc6

Please sign in to comment.