2026.8.25.2

Overview

Name virtualnetworkgateway
Tag 2026.8.25.2
FullName br:bicepacrdevwcom.azurecr.io/bicep/modules/virtualnetworkgateway:2026.8.25.2
Last updated 2026-08-25 09:49:03:+00:00
Created 2026-08-25 09:49:03:+00:00
Digest sha256:c4d5d9e23a8d577ee86c0c501080c50412161ad836cf0009355131f7c4c68b33

Parameters

Name Type Required Description
env string Yes
namePrefix string No
''
system string Yes
shortLocation string No
''
nameSuffix string No
''
virtualNetworkGatewayName string No
format('{0}{1}vng-{2}{3}{4}{5}{6}{7}{8}', namePrefix, if(empty(namePrefix), '', '-'), system, if(empty(system), '', '-'), shortLocation, if(empty(shortLocation), '', '-'), env, if(empty(nameSuffix), '', '-'), nameSuffix)
tags object Yes Tags to add to the resources
location string No
resourceGroup().location
Location for all resources
gatewayType string
'ExpressRoute',
'LocalGateway',
'Vpn'
No
'Vpn'
VPN Type
gatewayPublicAddressId string Yes Reference to the public IP used by the gateway
gatewaySubnetId string Yes Reference to the subnetID used by the gateway
skuName string
'Basic',
'ErGw1AZ',
'ErGw2AZ',
'ErGw3AZ',
'HighPerformance',
'Standard',
'UltraPerformance',
'VpnGw1',
'VpnGw1AZ',
'VpnGw2',
'VpnGw2AZ',
'VpnGw3',
'VpnGw3AZ',
'VpnGw4',
'VpnGw4AZ',
'VpnGw5',
'VpnGw5AZ'
No
'VpnGw1'
Gateway SKU name
skuTier string
'Basic',
'ErGw1AZ',
'ErGw2AZ',
'ErGw3AZ',
'HighPerformance',
'Standard',
'UltraPerformance',
'VpnGw1',
'VpnGw1AZ',
'VpnGw2',
'VpnGw2AZ',
'VpnGw3',
'VpnGw3AZ',
'VpnGw4',
'VpnGw4AZ',
'VpnGw5',
'VpnGw5AZ'
No
'VpnGw1'
Gateway SKU tier
vpnType string
'PolicyBased',
'RouteBased'
No
'RouteBased'
VPN Type
vpnGatewayGeneration string
'Generation1',
'Generation2',
'None'
No
'Generation1'
activeActiveMode bool No
false
usePointToPointConfiguration bool No
false
vpnClientAddressPoolPrefixes string No
''
vpnClientProtocols string
'IkeV2',
'OpenVPN',
'SSTP'
No
'OpenVPN'
vpnAuthenticationTypes string
'AAD',
'Certificate',
'Radius'
No
'AAD'
tenantId string No
tenant().tenantId
pointToSiteAadAudience string No
'41b23e61-6c1e-4545-b367-cd054e0ed4b4'
gatewaySecondaryPublicAddressId string No
''
Reference to the secondary IP used by the gateway in active-active mode
enableBGP bool No
false
asn int No
65515
asn configuration for BGP
vngNatRules array No
[
]

Outputs

Name Type Description
virtualNetworkGatewayId string

Example

@description('The target environment.')
param env string

@description('The deployment version.')
param version string = '1.0.0.0'

param system string

@description('Tags to add to the resources')
param tags object

@description('Reference to the public IP used by the gateway')
param gatewayPublicAddressId string

@description('Reference to the subnetID used by the gateway')
param gatewaySubnetId string


module virtualnetworkgateway 'br:bicepacrdevwcom.azurecr.io/bicep/modules/virtualnetworkgateway:2026.8.25.2' = {
    name: 'virtualnetworkgateway${env}${version}'
    params: {
      env: env
      system: system
      tags: tags
      gatewayPublicAddressId: gatewayPublicAddressId
      gatewaySubnetId: gatewaySubnetId
    }
}