Overview
|
|
| Name |
connection |
| Tag |
2026.8.31.6 |
| FullName |
br:bicepacrdevwcom.azurecr.io/bicep/modules/connection:2026.8.31.6 |
| Last updated |
2026-08-31 10:51:00:+00:00 |
| Created |
2026-08-31 10:51:00:+00:00 |
| Digest |
sha256:7633f5a77e0e875bf579585b0eecb9efe79dcc87a347d9ec25fb0151d5910f35 |
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.31.6' = {
name: 'connection${env}${version}'
params: {
env: env
system: system
tags: tags
virtualNetworkGatewayId: virtualNetworkGatewayId
localNetworkGatewayId: localNetworkGatewayId
connectionProtocol: connectionProtocol
sharedKey: sharedKey
ipsecPolicies: ipsecPolicies
}
}