-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoadBalancer.json
82 lines (82 loc) · 2.53 KB
/
LoadBalancer.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "2017.09.01.0",
"parameters": {
"Name": {
"type": "string",
"metadata": {
"description": "Resource name."
}
},
"FrontendIpConfigurations": {
"type": "array",
"metadata": {
"description": "Object representing the frontend IPs to be used for the load balancer"
}
},
"BackendAddressPools": {
"type": "array",
"metadata": {
"description": "Collection of backend address pools used by a load balancer"
}
},
"LoadBalancingRules": {
"type": "array",
"metadata": {
"description": "Object collection representing the load balancing rules Gets the provisioning"
}
},
"Probes": {
"type": "array",
"metadata": {
"description": "Collection of probe objects used in the load balancer"
}
},
"DependsOn": {
"type": "array",
"defaultValue": [],
"metadata": {
"description": "Pass dependencies"
}
}
},
"variables": {
"comments": {
"documentation": "https://docs.microsoft.com/en-us/rest/api/load-balancer/loadbalancers/createorupdate#definitions_loadbalancer"
},
"loadBalancers": {
"type": "Microsoft.Network/loadBalancers",
"name": "[parameters('Name')]",
"apiVersion": "2017-09-01",
"location": "[resourceGroup().location]",
"dependsOn": "[if(empty(parameters('DependsOn')),json('null'),parameters('DependsOn'))]",
"properties": {
"frontendIPConfigurations": "[parameters('FrontendIpConfigurations')]",
"backendAddressPools": "[parameters('BackendAddressPools')]",
"loadBalancingRules": "[parameters('LoadBalancingRules')]",
"probes": "[parameters('Probes')]"
}
}
},
"resources": [
{
"type": "Microsoft.Network/loadBalancers",
"name": "[parameters('Name')]",
"apiVersion": "2017-09-01",
"location": "[resourceGroup().location]",
"dependsOn": "[if(empty(parameters('DependsOn')),json('null'),parameters('DependsOn'))]",
"properties": {
"frontendIPConfigurations": "[parameters('FrontendIpConfigurations')]",
"backendAddressPools": "[parameters('BackendAddressPools')]",
"loadBalancingRules": "[parameters('LoadBalancingRules')]",
"probes": "[parameters('Probes')]"
}
}
],
"outputs": {
"loadBalancers": {
"type": "object",
"value": "[variables('loadBalancers')]"
}
}
}