Skip to content

Commit

Permalink
Bugfix: update the deployment dependency for NSG (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchang907 committed Jan 26, 2021
1 parent bb7acc5 commit 52ffb53
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions src/main/arm/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -471,29 +471,6 @@
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "${azure.apiVersion}",
"name": "networkSecurityLinkedTemplate",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[uri(parameters('_artifactsLocation'), concat('nestedtemplates/', variables('name_nsgLinkedTemplateName')))]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"denyPublicTrafficForAdminServer": {
"value": "[parameters('denyPublicTrafficForAdminServer')]"
},
"networkSecurityGroupName": {
"value": "[concat(parameters('dnsLabelPrefix'), '-nsg')]"
}
}
},
"dependsOn": [
"[resourceId('Microsoft.Resources/deployments', 'adminLinkedTemplate')]"
]
},
{
"name": "adminCustomSSLLinkedTemplate",
"type": "Microsoft.Resources/deployments",
Expand Down Expand Up @@ -626,6 +603,30 @@
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "${azure.apiVersion}",
"name": "networkSecurityLinkedTemplate",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[uri(parameters('_artifactsLocation'), concat('nestedtemplates/', variables('name_nsgLinkedTemplateName')))]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"denyPublicTrafficForAdminServer": {
"value": "[parameters('denyPublicTrafficForAdminServer')]"
},
"networkSecurityGroupName": {
"value": "[concat(parameters('dnsLabelPrefix'), '-nsg')]"
}
}
},
"dependsOn": [
"[resourceId('Microsoft.Resources/deployments', 'adminLinkedTemplate')]",
"[resourceId('Microsoft.Resources/deployments', 'adminCustomSSLLinkedTemplate')]"
]
},
{
"name": "dbLinkedTemplate",
"dependsOn": [
Expand Down

0 comments on commit 52ffb53

Please sign in to comment.