Skip to content

Commit 34a7e68

Browse files
committed
Add option to change vwan sku
1 parent fe20f5b commit 34a7e68

6 files changed

+26
-10
lines changed

infra-as-code/bicep/modules/vwanConnectivity/generateddocs/vwanConnectivity.bicep.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,35 @@ Parameter name | Required | Description
88
-------------- | -------- | -----------
99
parLocation | No | Region in which the resource group was created.
1010
parCompanyPrefix | No | Prefix value which will be prepended to all resource names.
11-
parGlobalResourceLock | No | Global Resource Lock Configuration used for all resources deployed in this module. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
11+
parGlobalResourceLock | No | Global Resource Lock Configuration used for all resources deployed in this module. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
1212
parVirtualHubEnabled | No | Switch to enable/disable Virtual Hub deployment.
1313
parVirtualWanName | No | Prefix Used for Virtual WAN.
14-
parVirtualWanLock | No | Resource Lock Configuration for Virtual WAN. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
14+
parVirtualWanType | No | The type of the Virtual WAN to create.
15+
parVirtualWanLock | No | Resource Lock Configuration for Virtual WAN. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
1516
parVirtualWanHubName | No | Prefix Used for Virtual WAN Hub.
1617
parVirtualWanHubDefaultRouteName | No | The name of the route table that manages routing between the Virtual WAN Hub and the Azure Firewall.
17-
parVirtualWanHubs | No | Array Used for multiple Virtual WAN Hubs deployment. Each object in the array represents an individual Virtual WAN Hub configuration. Add/remove additional objects in the array to meet the number of Virtual WAN Hubs required. - `parVpnGatewayEnabled` - Switch to enable/disable VPN Gateway deployment on the respective Virtual WAN Hub. - `parExpressRouteGatewayEnabled` - Switch to enable/disable ExpressRoute Gateway deployment on the respective Virtual WAN Hub. - `parAzFirewallEnabled` - Switch to enable/disable Azure Firewall deployment on the respective Virtual WAN Hub. - `parVirtualHubAddressPrefix` - The IP address range in CIDR notation for the vWAN virtual Hub to use. - `parHubLocation` - The Virtual WAN Hub location. - `parHubRoutingPreference` - The Virtual WAN Hub routing preference. The allowed values are `ASPath`, `VpnGateway`, `ExpressRoute`. - `parVirtualRouterAutoScaleConfiguration` - The Virtual WAN Hub capacity. The value should be between 2 to 50. - `parVirtualHubRoutingIntentDestinations` - The Virtual WAN Hub routing intent destinations, leave empty if not wanting to enable routing intent. The allowed values are `Internet`, `PrivateTraffic`.
18-
parVpnGatewayLock | No | Resource Lock Configuration for Virtual WAN Hub VPN Gateway. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
19-
parExpressRouteGatewayLock | No | Resource Lock Configuration for Virtual WAN Hub ExpressRoute Gateway. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
20-
parVirtualWanHubsLock | No | Resource Lock Configuration for Virtual WAN Hub. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
18+
parVirtualWanHubs | No | Array Used for multiple Virtual WAN Hubs deployment. Each object in the array represents an individual Virtual WAN Hub configuration. Add/remove additional objects in the array to meet the number of Virtual WAN Hubs required. - `parVpnGatewayEnabled` - Switch to enable/disable VPN Gateway deployment on the respective Virtual WAN Hub. - `parExpressRouteGatewayEnabled` - Switch to enable/disable ExpressRoute Gateway deployment on the respective Virtual WAN Hub. - `parAzFirewallEnabled` - Switch to enable/disable Azure Firewall deployment on the respective Virtual WAN Hub. - `parVirtualHubAddressPrefix` - The IP address range in CIDR notation for the vWAN virtual Hub to use. - `parHubLocation` - The Virtual WAN Hub location. - `parHubRoutingPreference` - The Virtual WAN Hub routing preference. The allowed values are `ASPath`, `VpnGateway`, `ExpressRoute`. - `parVirtualRouterAutoScaleConfiguration` - The Virtual WAN Hub capacity. The value should be between 2 to 50. - `parVirtualHubRoutingIntentDestinations` - The Virtual WAN Hub routing intent destinations, leave empty if not wanting to enable routing intent. The allowed values are `Internet`, `PrivateTraffic`.
19+
parVpnGatewayLock | No | Resource Lock Configuration for Virtual WAN Hub VPN Gateway. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
20+
parExpressRouteGatewayLock | No | Resource Lock Configuration for Virtual WAN Hub ExpressRoute Gateway. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
21+
parVirtualWanHubsLock | No | Resource Lock Configuration for Virtual WAN Hub. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
2122
parVpnGatewayName | No | VPN Gateway Name.
2223
parExpressRouteGatewayName | No | ExpressRoute Gateway Name.
2324
parAzFirewallName | No | Azure Firewall Name.
2425
parAzFirewallPolicyDeploymentStyle | No | The deployment style of the Azure Firewall Policy. Either one shared firewall policy (`SharedGlobal`) or one policy per region (`PerRegion`), defaults to `SharedGlobal`.
2526
parAzFirewallPoliciesName | No | Azure Firewall Policies Name. This is used to automatically generate a name for the Azure Firewall Policy following concat of the pattern `parAzFirewallPoliciesName-hub.parHubLocation` if you want to provide a true custom name then specify a value in each object in the array of `parVirtualWanHubs.parAzFirewallPolicyCustomName`.
2627
parAzFirewallPoliciesAutoLearn | No | The operation mode for automatically learning private ranges to not be SNAT.
2728
parAzFirewallPoliciesPrivateRanges | No | Private IP addresses/IP ranges to which traffic will not be SNAT.
28-
parAzureFirewallLock | No | Resource Lock Configuration for Azure Firewall. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
29+
parAzureFirewallLock | No | Resource Lock Configuration for Azure Firewall. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
2930
parVpnGatewayScaleUnit | No | The scale unit for this VPN Gateway.
3031
parExpressRouteGatewayScaleUnit | No | The scale unit for this ExpressRoute Gateway.
3132
parDdosEnabled | No | Switch to enable/disable DDoS Network Protection deployment.
3233
parDdosPlanName | No | DDoS Plan Name.
33-
parDdosLock | No | Resource Lock Configuration for DDoS Plan. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
34+
parDdosLock | No | Resource Lock Configuration for DDoS Plan. - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
3435
parPrivateDnsZonesEnabled | No | Switch to enable/disable Private DNS Zones deployment.
3536
parPrivateDnsZonesResourceGroup | No | Resource Group Name for Private DNS Zones.
3637
parPrivateDnsZones | No | Array of DNS Zones to provision in Hub Virtual Network. Default: All known Azure Private DNS Zones, baked into underlying AVM module see: https://github.com/Azure/bicep-registry-modules/tree/main/avm/ptn/network/private-link-private-dns-zones#parameter-privatelinkprivatednszones
3738
parVirtualNetworkResourceIdsToLinkTo | No | Array of Resource IDs of VNets to link to Private DNS Zones.
38-
parPrivateDNSZonesLock | No | Resource Lock Configuration for Private DNS Zone(s). - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
39+
parPrivateDNSZonesLock | No | Resource Lock Configuration for Private DNS Zone(s). - `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None. - `notes` - Notes about this lock.
3940
parTags | No | Tags you would like to be applied to all resources in this module.
4041
parTelemetryOptOut | No | Set Parameter to true to Opt-out of deployment telemetry
4142

infra-as-code/bicep/modules/vwanConnectivity/parameters/mc-vwanConnectivity.parameters.all.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"parVirtualWanName": {
1515
"value": "alz-vwan"
1616
},
17+
parVirtualWanType: {
18+
"value": "Standard"
19+
},
1720
"parVirtualWanHubName": {
1821
"value": "alz-vhub"
1922
},

infra-as-code/bicep/modules/vwanConnectivity/parameters/vwanConnectivity.parameters.all.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"parVirtualWanName": {
1515
"value": "alz-vwan"
1616
},
17+
"parVirtualWanType": {
18+
"value": "Standard"
19+
},
1720
"parVirtualWanHubName": {
1821
"value": "alz-vhub"
1922
},

infra-as-code/bicep/modules/vwanConnectivity/parameters/vwanConnectivity.parameters.az.all.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"parVirtualWanName": {
1515
"value": "alz-vwan"
1616
},
17+
"parVirtualWanType": {
18+
"value": "Standard"
19+
},
1720
"parVirtualWanHubName": {
1821
"value": "alz-vhub"
1922
},

infra-as-code/bicep/modules/vwanConnectivity/parameters/vwanConnectivity.parameters.az.multiRegion.all.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"parVirtualWanName": {
1515
"value": "alz-vwan"
1616
},
17+
"parVirtualWanType": {
18+
"value": "Standard"
19+
},
1720
"parVirtualWanHubName": {
1821
"value": "alz-vhub"
1922
},

infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep

+4-1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ param parVirtualHubEnabled bool = true
101101
@sys.description('Prefix Used for Virtual WAN.')
102102
param parVirtualWanName string = '${parCompanyPrefix}-vwan-${parLocation}'
103103

104+
@description('The type of Virtual WAN to create.')
105+
param parVirtualWanType string = 'Standard'
106+
104107
@sys.description('''Resource Lock Configuration for Virtual WAN.
105108
106109
- `kind` - The lock settings of the service which can be CanNotDelete, ReadOnly, or None.
@@ -299,7 +302,7 @@ resource resVwan 'Microsoft.Network/virtualWans@2024-05-01' = {
299302
allowBranchToBranchTraffic: true
300303
allowVnetToVnetTraffic: true
301304
disableVpnEncryption: false
302-
type: 'Standard'
305+
type: parVirtualWanType
303306
}
304307
}
305308

0 commit comments

Comments
 (0)