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 : '' }