Skip to content

Commit

Permalink
Simplified hub VNET and firewall setup, corrected DNS rules, and stre…
Browse files Browse the repository at this point in the history
…amlined subnet configuration
  • Loading branch information
kennethcarnes committed Feb 5, 2024
1 parent 2599a6d commit a5f0ced
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bicep/firewall.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ resource networkRuleCollection 'Microsoft.Network/firewallPolicies/ruleCollectio
]
protocols: [
{
protocolType: 'UDP'
protocolType: 'Udp'
port: 53
}
]
}
Expand Down
11 changes: 9 additions & 2 deletions bicep/vnets.bicep
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
param location string
param hubVnetName string
param hubSubnet1Prefix string
param hubSubnet2Prefix string
param hubSubnet1Prefix string = '10.0.1.0/24'
param hubSubnet2Prefix string = '10.0.2.0/24'
param spokeVnetDetails array

// Hub Virtual Network
Expand All @@ -13,6 +13,12 @@ resource hubVnet 'Microsoft.Network/virtualNetworks@2021-02-01' = {
addressPrefixes: ['10.0.0.0/16']
}
subnets: [
{
name: 'AzureFirewallSubnet'
properties: {
addressPrefix: '10.0.0.0/24'
}
}
{
name: 'Subnet1'
properties: {
Expand All @@ -25,6 +31,7 @@ resource hubVnet 'Microsoft.Network/virtualNetworks@2021-02-01' = {
addressPrefix: hubSubnet2Prefix
}
}
// ... other subnets if needed ...
]
}
}
Expand Down

0 comments on commit a5f0ced

Please sign in to comment.