2026.8.25.2

Overview

Name connection
Tag 2026.8.25.2
FullName br:bicepacrdevwcom.azurecr.io/bicep/modules/connection:2026.8.25.2
Last updated 2026-08-25 09:46:18:+00:00
Created 2026-08-25 09:46:18:+00:00
Digest sha256:2213310d83e47c8b369d017366ff15179b62a5003bfc558fa7231a25ee62a085

Parameters

Name Type Required Description
env string Yes
namePrefix string No
''
system string Yes
shortLocation string No
''
nameSuffix string No
''
connectionName string No
format('{0}{1}connection-{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
virtualNetworkGatewayId string Yes Virtual Network Gateway Id used by the connection
localNetworkGatewayId string Yes Local Network Gateway Id used by the connection
connectionType string
'ExpressRoute',
'IPsec',
'VPNClient',
'Vnet2Vnet'
No
'IPsec'
Connection Type
connectionProtocol string
'IKEv1',
'IKEv2'
Yes Connection Protocol
sharedKey ▲ secure ▲
string
Yes Pre-shared key used by connection
enableBgp bool No
false
usePolicyBasedTrafficSelectors bool No
false
ipsecPolicies array Yes ipsec policies used by connection
egressNatRules array No
[
]
ipsec policies used by connection
dpdTimeoutSeconds int No
0

Outputs

Name Type Description
conenction 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('Virtual Network Gateway Id used by the connection')
param virtualNetworkGatewayId string

@description('Local Network Gateway Id used by the connection')
param localNetworkGatewayId string

@description('Connection Protocol')
param connectionProtocol string

@description('Pre-shared key used by connection')
@secure()
param sharedKey string

@description('ipsec policies used by connection')
param ipsecPolicies array


module connection 'br:bicepacrdevwcom.azurecr.io/bicep/modules/connection:2026.8.25.2' = {
    name: 'connection${env}${version}'
    params: {
      env: env
      system: system
      tags: tags
      virtualNetworkGatewayId: virtualNetworkGatewayId
      localNetworkGatewayId: localNetworkGatewayId
      connectionProtocol: connectionProtocol
      sharedKey: sharedKey
      ipsecPolicies: ipsecPolicies
    }
}