From 76c6a7a996b7ce2c0870624fc568355d2ce98d10 Mon Sep 17 00:00:00 2001 From: Jan Faurskov <22591930+jfaurskov@users.noreply.github.com> Date: Mon, 10 Oct 2022 14:47:23 +0200 Subject: [PATCH] Fix #334 - fix deployment errors related to Network.DNS.Proxy (#335) * remove lines * fix api versions --- .../bicep/modules/vwanConnectivity/vwanConnectivity.bicep | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep b/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep index e38bf5f92..25f85dab2 100644 --- a/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep +++ b/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep @@ -221,7 +221,7 @@ resource resErGateway 'Microsoft.Network/expressRouteGateways@2021-05-01' = if ( } } -resource resFirewallPolicies 'Microsoft.Network/firewallPolicies@2021-08-01' = if (parVirtualHubEnabled && parAzFirewallEnabled) { +resource resFirewallPolicies 'Microsoft.Network/firewallPolicies@2022-05-01' = if (parVirtualHubEnabled && parAzFirewallEnabled) { name: parAzFirewallPoliciesName location: parLocation tags: parTags @@ -235,7 +235,7 @@ resource resFirewallPolicies 'Microsoft.Network/firewallPolicies@2021-08-01' = i } } -resource resAzureFirewall 'Microsoft.Network/azureFirewalls@2021-02-01' = if (parVirtualHubEnabled && parAzFirewallEnabled) { +resource resAzureFirewall 'Microsoft.Network/azureFirewalls@2022-05-01' = if (parVirtualHubEnabled && parAzFirewallEnabled) { name: parAzFirewallName location: parLocation tags: parTags @@ -253,9 +253,6 @@ resource resAzureFirewall 'Microsoft.Network/azureFirewalls@2021-02-01' = if (pa virtualHub: { id: parVirtualHubEnabled ? resVhub.id : '' } - additionalProperties: { - 'Network.DNS.EnableProxy': '${parAzFirewallDnsProxyEnabled}' - } firewallPolicy: { id: (parVirtualHubEnabled && parAzFirewallEnabled) ? resFirewallPolicies.id : '' }