Skip to content

Commit

Permalink
Split the appServiceAllowedIPs ARM parameter in 2
Browse files Browse the repository at this point in the history
This allows separate access restrictions to be passed to the front and
backend apps.
  • Loading branch information
NickGraham101 committed Jun 9, 2022
1 parent 79ecc74 commit 78ebc40
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions azure/finance.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@
"sharedApimName": {
"type": "string"
},
"appServiceAllowedIPs": {
"type": "array",
"defaultValue": []
"backEndAccessRestrictions": {
"type": "array"
},
"frontEndAccessRestrictions": {
"type": "array"
},
"sharedSQLServerName": {
"type": "string"
Expand Down Expand Up @@ -269,7 +271,7 @@
"value": "[if(greater(length(parameters('uiCustomHostname')), 0), reference('ui-app-service-certificate', '2018-11-01').outputs.certificateThumbprint.value, '')]"
},
"ipSecurityRestrictions": {
"value": "[parameters('appServiceAllowedIPs')]"
"value": "[parameters('frontEndAccessRestrictions')]"
}
}
}
Expand Down Expand Up @@ -379,7 +381,7 @@
"value": "[if(greater(length(parameters('apiCustomHostname')), 0), reference('api-app-service-certificate', '2018-11-01').outputs.certificateThumbprint.value, '')]"
},
"ipSecurityRestrictions": {
"value": "[parameters('appServiceAllowedIPs')]"
"value": "[parameters('backEndAccessRestrictions')]"
}
}
}
Expand Down

0 comments on commit 78ebc40

Please sign in to comment.