Skip to content

Commit

Permalink
added properties (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterbasNagengast committed May 11, 2023
1 parent c4a65d7 commit abc6826
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/vwan.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ resource vWanHub 'Microsoft.Network/virtualHubs@2022-11-01' = {
name: 'HUB-${location}'
location: location
properties: {
allowBranchToBranchTraffic: true
hubRoutingPreference: 'ExpressRoute'
virtualRouterAsn: 65515
virtualRouterAutoScaleConfiguration: {
minCapacity: 2
}
addressPrefix: AddressPrefix
virtualWan: {
id: vWan.id
Expand Down
1 change: 1 addition & 0 deletions modules/vwanvnetconnection.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ param propagateToNoneRouteTable bool = false
resource vWanVnetConnection 'Microsoft.Network/virtualHubs/hubVirtualNetworkConnections@2022-11-01' = {
name: '${vwanHubName}/${vwanHubName}-to-${spokeName}'
properties: {
allowRemoteVnetToUseHubVnetGateways: true
routingConfiguration: {
associatedRouteTable: {
id: resourceId('Microsoft.Network/virtualHubs/hubRouteTables', vwanHubName, 'defaultRouteTable')
Expand Down

0 comments on commit abc6826

Please sign in to comment.