Skip to content

Commit 5b1949d

Browse files
committed
added missing params
1 parent c505ede commit 5b1949d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

nestedtemplates/external-lb.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@
2323
"type": "String"
2424
}
2525
},
26-
"variables": {},
26+
"variables": {
27+
"ipName": "[concat(parameters('clusterName'), '-ip')]",
28+
"ipId": "[resourceId('Microsoft.Network/publicIPAddresses/', variables('ipName'))]"
29+
},
2730
"resources": [
2831
{
2932
"type": "Microsoft.Network/publicIPAddresses",
30-
"name": "[concat(parameters('clusterName'), '-ip')]",
33+
"name": "[variables('ipName')]",
3134
"apiVersion": "2016-03-30",
3235
"location": "[resourceGroup().location]",
3336
"properties": {
@@ -51,7 +54,7 @@
5154
"name": "loadBalancerFrontEnd",
5255
"properties": {
5356
"publicIPAddress": {
54-
"id": "[parameters('ipId')]"
57+
"id": "[variables('ipId')]"
5558
}
5659
}
5760
}
@@ -203,7 +206,10 @@
203206
}
204207
}
205208
]
206-
}
209+
},
210+
"dependsOn": [
211+
"[variables('ipId')]"
212+
]
207213
}
208214
]
209215
}

0 commit comments

Comments
 (0)