-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoadBalancingRules.json
116 lines (116 loc) · 3.88 KB
/
LoadBalancingRules.json
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "2017.09.01.0",
"parameters": {
"Name": {
"type": "string",
"metadata": {
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource."
}
},
"FrontendIPConfigurationId": {
"type": "string",
"metadata": {
"description": "A reference to frontend IP addresses."
}
},
"BackendAddressPoolId": {
"type": "string",
"metadata": {
"description": "A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs."
}
},
"Protocol": {
"type": "string",
"allowedValues": [
"All",
"Tcp",
"Udp"
],
"metadata": {
"description": "The transport protocol for the endpoint. Possible values are 'Udp' or 'Tcp' or 'All."
}
},
"FrontendPort": {
"type": "int",
"minValue": 0,
"maxValue": 65534,
"metadata": {
"description": "The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables 'Any Port"
}
},
"BackendPort": {
"type": "int",
"minValue": 0,
"maxValue": 65534,
"metadata": {
"description": "The port used for internal connections on the endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables 'Any Port"
}
},
"EnableFloatingIP": {
"type": "bool",
"metadata": {
"description": "Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint."
}
},
"IdleTimeoutInMinutes": {
"type": "int",
"minValue": 4,
"maxValue": 30,
"defaultValue": 4,
"metadata": {
"description": "The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP."
}
},
"ProbeId": {
"type": "string",
"metadata": {
"description": "The reference of the load balancer probe used by the load balancing rule."
}
},
"LoadDistribution": {
"type": "string",
"allowedValues": [
"Default",
"SourceIP",
"SourceIPProtocol"
],
"metadata": {
"description": "The load distribution policy for this rule. Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'."
}
}
},
"variables": {
"comments": {
"documentation": "https://docs.microsoft.com/en-us/rest/api/load-balancer/loadbalancers/createorupdate#definitions_loadbalancingrule"
},
"rule": {
"name": "[parameters('Name')]",
"properties": {
"frontendIPConfiguration": {
"id": "[parameters('FrontendIPConfigurationId')]"
},
"backendAddressPool": {
"id": "[parameters('backendAddressPoolId')]"
},
"protocol": "[parameters('Protocol')]",
"loadDistribution": "[parameters('LoadDistribution')]",
"frontendPort": "[parameters('FrontendPort')]",
"backendPort": "[parameters('BackendPort')]",
"enableFloatingIP": "[parameters('EnableFloatingIP')]",
"idleTimeoutInMinutes": "[parameters('IdleTimeoutInMinutes')]",
"probe": {
"id": "[parameters('ProbeId')]"
}
}
}
},
"resources": [
],
"outputs": {
"loadBalancingRules": {
"type": "object",
"value": "[variables('rule')]"
}
}
}