We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c505ede commit 5b1949dCopy full SHA for 5b1949d
nestedtemplates/external-lb.json
@@ -23,11 +23,14 @@
23
"type": "String"
24
}
25
},
26
- "variables": {},
+ "variables": {
27
+ "ipName": "[concat(parameters('clusterName'), '-ip')]",
28
+ "ipId": "[resourceId('Microsoft.Network/publicIPAddresses/', variables('ipName'))]"
29
+ },
30
"resources": [
31
{
32
"type": "Microsoft.Network/publicIPAddresses",
- "name": "[concat(parameters('clusterName'), '-ip')]",
33
+ "name": "[variables('ipName')]",
34
"apiVersion": "2016-03-30",
35
"location": "[resourceGroup().location]",
36
"properties": {
@@ -51,7 +54,7 @@
51
54
"name": "loadBalancerFrontEnd",
52
55
53
56
"publicIPAddress": {
- "id": "[parameters('ipId')]"
57
+ "id": "[variables('ipId')]"
58
59
60
@@ -203,7 +206,10 @@
203
206
204
207
205
208
]
- }
209
210
+ "dependsOn": [
211
+ "[variables('ipId')]"
212
+ ]
213
214
215
0 commit comments