Skip to content

Commit

Permalink
Private link service requires private_link_service_network_policies_e…
Browse files Browse the repository at this point in the history
…nabled to be set to false, adding the option to do this
  • Loading branch information
sdevriessbp committed Oct 10, 2024
1 parent 8bb77c4 commit 2758152
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ resource "azurerm_virtual_network" "this" {
resource "azurerm_subnet" "this" {
for_each = var.subnets

name = each.value.name != null ? each.value.name : each.key
resource_group_name = azurerm_virtual_network.this.resource_group_name
default_outbound_access_enabled = each.value.default_outbound_access_enabled
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = each.value.address_prefixes
name = each.value.name != null ? each.value.name : each.key
resource_group_name = azurerm_virtual_network.this.resource_group_name
default_outbound_access_enabled = each.value.default_outbound_access_enabled
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = each.value.address_prefixes
private_link_service_network_policies_enabled = each.value.private_link_service_network_policies_enabled != null ? each.value.private_link_service_network_policies_enabled : true

dynamic "delegation" {
for_each = each.value.delegate_to != null ? [each.value.delegate_to] : []
Expand Down

0 comments on commit 2758152

Please sign in to comment.