-
Notifications
You must be signed in to change notification settings - Fork 1
/
vwanvpnsite.bicep
43 lines (36 loc) · 1017 Bytes
/
vwanvpnsite.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
param vpnsitename string
param location string = resourceGroup().location
@description('Specifices the VPN Sites local IP Addresses')
param addressprefix string
@description('Specifices the VPN Sites BGP Peering IP Addresses')
param bgppeeringpddress string
@description('Specifices the VPN Sites VPN Device IP Address')
param ipaddress string
@description('Specifices the resource ID of the Virtual WAN where the VPN Site should be created')
param wanid string
@description('BGP AS-Number used by the remote site')
param remotesiteasn int
resource vpnsite 'Microsoft.Network/vpnSites@2020-06-01' = {
name: vpnsitename
location: location
properties: {
addressSpace: {
addressPrefixes: [
addressprefix
]
}
bgpProperties: {
asn: remotesiteasn
bgpPeeringAddress: bgppeeringpddress
peerWeight: 0
}
deviceProperties: {
linkSpeedInMbps: 0
}
ipAddress: ipaddress
virtualWan: {
id: wanid
}
}
}
output id string = vpnsite.id