forked from radius-project/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-loadbalancer-external.bicep
68 lines (68 loc) · 1.87 KB
/
res-loadbalancer-external.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// External Load Balancer
resource /*${1:loadBalancerExternal}*/loadBalancerExternal 'Microsoft.Network/loadBalancers@2020-11-01' = {
name: /*${2:'name'}*/'name'
location: /*${3:location}*/'location'
properties: {
frontendIPConfigurations: [
{
name: /*${4:'name'}*/'name'
properties: {
publicIPAddress: {
id: /*${5:'publicIPAddresses.id'}*/'publicIPAddresses.id'
}
}
}
]
backendAddressPools: [
{
name: /*${6:'name'}*/'name'
}
]
inboundNatRules: [
{
name: /*${7:'name'}*/'name'
properties: {
frontendIPConfiguration: {
id: /*${8:'frontendIPConfiguration.id'}*/'frontendIPConfiguration.id'
}
protocol: /*'${9|Tcp,Udp,All|}'*/'Tcp'
frontendPort: /*${10:50001}*/50001
backendPort: /*${11:3389}*/3389
enableFloatingIP: false
}
}
]
loadBalancingRules: [
{
name: /*${12:'name'}*/'name'
properties: {
frontendIPConfiguration: {
id: /*${13:'frontendIPConfiguration.id'}*/'frontendIPConfiguration.id'
}
backendAddressPool: {
id: /*${14:'backendAddressPool.id'}*/'backendAddressPool.id'
}
protocol: /*'${15|Tcp,Udp,All|}'*/'Tcp'
frontendPort: /*${16:80}*/80
backendPort: /*${17:80}*/80
enableFloatingIP: false
idleTimeoutInMinutes: 5
probe: {
id: /*${18:'probe.id'}*/'probe.id'
}
}
}
]
probes: [
{
name: /*${19:'name'}*/'name'
properties: {
protocol: /*'${20|Tcp,Udp,All|}'*/'Tcp'
port: /*${21:80}*/80
intervalInSeconds: 5
numberOfProbes: 2
}
}
]
}
}