Skip to content

Commit 797497a

Browse files
committed
add dependencies
1 parent b432fc4 commit 797497a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

template.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"resources": [
113113
{
114114
"type": "Microsoft.Resources/deployments",
115-
"name": "[parameters('vnetName')]",
115+
"name": "vnet",
116116
"apiVersion": "2015-01-01",
117117
"properties": {
118118
"mode": "Incremental",
@@ -203,6 +203,7 @@
203203
]
204204
},
205205
"dependsOn": [
206+
"[resourceId('Microsoft.Resources/deployments', 'vnet')]",
206207
"[variables('vnetId')]",
207208
"[variables('lbId')]"
208209
]
@@ -255,6 +256,7 @@
255256
"dependsOn": [
256257
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountPrefix')[copyIndex()], variables('storageAccountSuffix'))]",
257258
"[concat('Microsoft.Network/networkInterfaces/', 'zookeeper', copyIndex(), '-nic')]",
259+
"[resourceId('Microsoft.Resources/deployments', 'vnet')]",
258260
"[concat('Microsoft.Compute/availabilitySets/', 'zookeeperAvailabilitySet')]"
259261
]
260262
},
@@ -316,6 +318,7 @@
316318
]
317319
},
318320
"dependsOn": [
321+
"[resourceId('Microsoft.Resources/deployments', 'vnet')]",
319322
"[variables('vnetId')]",
320323
"[variables('lbId')]"
321324
]
@@ -433,7 +436,10 @@
433436
"value": "[variables('lbId')]"
434437
}
435438
}
436-
}
439+
},
440+
"dependsOn": [
441+
"[resourceId('Microsoft.Resources/deployments', 'vnet')]"
442+
]
437443
}
438444
],
439445
"outputs": {

0 commit comments

Comments
 (0)