Skip to content

Commit 605c7de

Browse files
Copilotjtracey93
andcommitted
Fix zone_redundancy_enabled to use ternary for independent control with private networking
When private networking is enabled (Premium SKU), zone_redundancy_enabled is now independently controlled by container_registry_zone_redundancy_enabled. When private networking is disabled (Basic SKU), zone_redundancy_enabled is false as required by the Terraform provider. The ternary pattern is consistent with the other attributes in the resource block. Co-authored-by: jtracey93 <41163455+jtracey93@users.noreply.github.com>
1 parent 4b39231 commit 605c7de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/azure/container_registry.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "azurerm_container_registry" "alz" {
55
location = var.azure_location
66
sku = var.use_private_networking ? "Premium" : "Basic"
77
public_network_access_enabled = !var.use_private_networking
8-
zone_redundancy_enabled = var.use_private_networking && var.container_registry_zone_redundancy_enabled
8+
zone_redundancy_enabled = var.use_private_networking ? var.container_registry_zone_redundancy_enabled : false
99
network_rule_bypass_option = var.use_private_networking ? "AzureServices" : "None"
1010
}
1111

0 commit comments

Comments
 (0)