Skip to content

Commit

Permalink
Updated firewall IP configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethcarnes committed Feb 5, 2024
1 parent 567a773 commit 2599a6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
12 changes: 1 addition & 11 deletions bicep/firewall.bicep
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
param location string
param hubVnetName string
param workloadSubnetId string
param firewallPrivateIp string

resource firewallPublicIP 'Microsoft.Network/publicIPAddresses@2021-05-01' = {
Expand Down Expand Up @@ -54,7 +53,7 @@ resource azureFirewall 'Microsoft.Network/azureFirewalls@2021-05-01' = {
}
}

resource routeTable 'Microsoft.Network/routeTables@2020-07-01' = {
resource routeTable 'Microsoft.Network/routeTables@2023-04-01' = {
name: '${hubVnetName}-routeTable'
location: location
properties: {
Expand All @@ -71,15 +70,6 @@ resource routeTable 'Microsoft.Network/routeTables@2020-07-01' = {
}
}

resource subnetRouteTableAssociation 'Microsoft.Network/virtualNetworks/subnets@2020-11-01' = {
name: '${workloadSubnetId}/routeTable'
properties: {
routeTable: {
id: routeTable.id
}
}
}

resource firewallPolicy 'Microsoft.Network/firewallPolicies@2023-06-01' = {
name: 'myFirewallPolicy'
location: location
Expand Down
1 change: 0 additions & 1 deletion bicep/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ module firewall './firewall.bicep' = {
params: {
location: location
hubVnetName: hubVnetName
workloadSubnetId: vnets.outputs.workloadSubnetId
firewallPrivateIp: '10.0.1.4'
}
dependsOn: [
Expand Down

0 comments on commit 2599a6d

Please sign in to comment.