Skip to content

Commit

Permalink
Azure Template | Correcting networkInterfaces resource dependencies t…
Browse files Browse the repository at this point in the history
…o fix InvalidResourceReference error
  • Loading branch information
chkp-natanelm committed Dec 10, 2024
1 parent c05053e commit ddb9b1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion azure/templates/marketplace-management/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,8 @@
"apiVersion": "2020-06-01",
"dependsOn": [
"[coalesce(resourceId('Microsoft.Resources/deployments', 'networkNewSetup'), resourceId('Microsoft.Resources/deployments', 'networkExistingSetup'))]",
"[variables('publicIPAddressId')]"
"[variables('publicIPAddressId')]",
"[coalesce(resourceId('Microsoft.Network/networkSecurityGroups', parameters('NewNsgName')), variables('publicIPAddressId'))]"
],
"location": "[variables('location')]",
"name": "[variables('nic1Name')]",
Expand Down
3 changes: 2 additions & 1 deletion azure/templates/marketplace-mds/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,8 @@
"apiVersion": "2020-06-01",
"dependsOn": [
"[coalesce(resourceId('Microsoft.Resources/deployments', 'networkNewSetup'), resourceId('Microsoft.Resources/deployments', 'networkExistingSetup'))]",
"[variables('publicIPAddressId')]"
"[variables('publicIPAddressId')]",
"[coalesce(resourceId('Microsoft.Network/networkSecurityGroups', parameters('NewNsgName')), variables('publicIPAddressId'))]"
],
"location": "[variables('location')]",
"name": "[variables('nic1Name')]",
Expand Down

0 comments on commit ddb9b1e

Please sign in to comment.