Skip to content

Commit

Permalink
Fix #334 - fix deployment errors related to Network.DNS.Proxy (#335)
Browse files Browse the repository at this point in the history
* remove lines

* fix api versions
  • Loading branch information
jfaurskov authored Oct 10, 2022
1 parent 29fb151 commit 76c6a7a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 : ''
}
Expand Down

0 comments on commit 76c6a7a

Please sign in to comment.