From a0158a8811df378c8c63059a3fe3ee5b7f9f2b2a Mon Sep 17 00:00:00 2001 From: audunsolemdal Date: Fri, 11 Oct 2024 17:51:51 +0200 Subject: [PATCH] Autopause now supports pausing down to 15 mins delay --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 455966d..c28f342 100644 --- a/main.tf +++ b/main.tf @@ -79,7 +79,7 @@ resource "azurerm_mssql_database" "db" { server_id = azurerm_mssql_server.sqlsrv.id sku_name = each.value.sku_name != null ? each.value.sku_name : "GP_S_Gen5_1" min_capacity = !startswith(each.value.sku_name, "GP_S") ? 0 : try(each.value.min_capacity, 0.5) - auto_pause_delay_in_minutes = !startswith(each.value.sku_name, "GP_S") ? 0 : try(each.value.auto_pause_delay_in_minutes, 60) + auto_pause_delay_in_minutes = !startswith(each.value.sku_name, "GP_S") ? 0 : try(each.value.auto_pause_delay_in_minutes, 30) storage_account_type = each.value.storage_account_type != null ? each.value.storage_account_type : "Local" license_type = each.value.capacity_unit == "Provisioned" && each.value.license_type != null ? each.value.license_type : null collation = each.value.collation != null ? each.value.collation : "Danish_Norwegian_CI_AS"