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 a5f0ced commit fc5274d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bicep/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,19 @@ module vnets './vnets.bicep' = {
}
}

// In main.bicep
module firewall './firewall.bicep' = {
name: 'firewallDeployment'
params: {
location: location
hubVnetName: hubVnetName
firewallPrivateIp: '10.0.1.4'
firewallPrivateIp: '10.0.0.4'
// workloadSubnetId parameter removed as it's not used in the updated configuration
}
dependsOn: [
vnets
]
}


output hubVnetId string = vnets.outputs.hubVnetId
3 changes: 2 additions & 1 deletion bicep/vnets.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ param hubVnetName string
param hubSubnet1Prefix string = '10.0.1.0/24'
param hubSubnet2Prefix string = '10.0.2.0/24'
param spokeVnetDetails array
param AzureFirewallSubnet string = '10.0.0.0/24'

// Hub Virtual Network
resource hubVnet 'Microsoft.Network/virtualNetworks@2021-02-01' = {
Expand All @@ -16,7 +17,7 @@ resource hubVnet 'Microsoft.Network/virtualNetworks@2021-02-01' = {
{
name: 'AzureFirewallSubnet'
properties: {
addressPrefix: '10.0.0.0/24'
addressPrefix: AzureFirewallSubnet
}
}
{
Expand Down

0 comments on commit fc5274d

Please sign in to comment.