forked from radius-project/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-traffic-manager.bicep
31 lines (31 loc) · 1.01 KB
/
res-traffic-manager.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
// Traffic Manager Profile
resource /*${1:trafficManagerProfile}*/trafficManagerProfile 'Microsoft.Network/trafficManagerProfiles@2018-08-01' = {
name: /*${2:'name'}*/'name'
location: 'global'
properties: {
profileStatus: 'Enabled'
trafficRoutingMethod: /*${3|'Performance','Priority','Weighted','Geographic'|}*/'Performance'
dnsConfig: {
relativeName: /*${4:'dnsConfigRelativeName'}*/'dnsConfigRelativeName'
ttl: 30
}
monitorConfig: {
protocol: /*${5|'HTTP','HTTPS','TCP'|}*/'HTTP'
port: /*${6:80}*/80
path: /*${7:'path'}*/'path'
intervalInSeconds: /*${8:30}*/30
timeoutInSeconds: /*${9:5}*/5
toleratedNumberOfFailures: /*${10:3}*/3
}
endpoints: [
{
properties: {
targetResourceId: /*${11:'targetResourceId'}*/'targetResourceId'
endpointStatus: /*${12|'Enabled','Disabled'|}*/'Enabled'
weight: /*${13:100}*/100
priority: /*${14:1}*/1
}
}
]
}
}