Skip to content

Commit

Permalink
Autopause now supports pausing down to 15 mins delay
Browse files Browse the repository at this point in the history
  • Loading branch information
audunsolemdal committed Oct 11, 2024
1 parent 981fe8b commit a0158a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a0158a8

Please sign in to comment.