Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dfe-analytical-services/explore-education-statistics
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5c1fff4cd1d56a005cdfae4361cd357f0ad4e07c
Choose a base ref
..
head repository: dfe-analytical-services/explore-education-statistics
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d016e5dbfd716f593eef20a90a6a1bbdc22e1290
Choose a head ref
Showing with 7 additions and 1 deletion.
  1. +7 −1 infrastructure/templates/public-api/main.bicep
8 changes: 7 additions & 1 deletion infrastructure/templates/public-api/main.bicep
Original file line number Diff line number Diff line change
@@ -180,6 +180,12 @@ resource postgreSqlPrivateDnsZone 'Microsoft.Network/privateDnsZones@2020-06-01'
}
*/

var formattedPostgreSqlFirewallRules = map(postgreSqlFirewallRules, rule => {
name: replace(rule.name, ' ', '_')
startIpAddress: rule.startIpAddress
endIpAddress: rule.endIpAddress
})

// Deploy PostgreSQL Database.
module postgreSqlServerModule 'components/postgresqlDatabase.bicep' = {
name: 'postgreSQLDatabaseDeploy'
@@ -201,7 +207,7 @@ module postgreSqlServerModule 'components/postgresqlDatabase.bicep' = {
*/
// privateDnsZoneId: postgreSqlPrivateDnsZone.id
// subnetId: vNetModule.outputs.postgreSqlSubnetRef
firewallRules: concat(postgreSqlFirewallRules, [
firewallRules: concat(formattedPostgreSqlFirewallRules, [
{
name: '${resourcePrefix}-ca-${apiContainerAppName}-subnet'
startIpAddress: vNetModule.outputs.containerAppEnvironmentSubnetStartIpAddress