Skip to content

Commit e92bbc6

Browse files
author
Marges, RSY (Rick)
committed
Revert avset count to use ppg
When deploying an application availability set the application server zones can be ignored. This means that the zones will be an empty list and thus the max won't work. For SCS the count is still based on ppg (like app was previously as well), so reverting to that state.
1 parent 01df827 commit e92bbc6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

deploy/terraform/terraform-units/modules/sap_system/app_tier/infrastructure.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,10 @@ resource "azurerm_availability_set" "scs" {
327327
#######################################4#######################################8
328328
resource "azurerm_availability_set" "app" {
329329
provider = azurerm.main
330-
count = local.use_app_avset && var.application_tier.avset_arm_ids_count == 0 ? max(var.application_tier.app_zone_count, 1) : 0
330+
count = local.use_app_avset && var.application_tier.avset_arm_ids_count == 0 ? (
331+
max(length(var.ppg), 1)) : (
332+
0
333+
)
331334

332335
depends_on = [azurerm_virtual_machine_data_disk_attachment.scs]
333336
name = format("%s%s%s",

0 commit comments

Comments
 (0)