Skip to content

Commit a5a6868

Browse files
authored
fix(azure): ensure postgres configuration run in sequence (#1448)
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Getting a lot of operation in progress when updating configuration for the postgresql server. Could be that we need to add the configuration in sequence. ## Related Issue(s) - #{issue number} ## Verification - [ ] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Improved dependency management in the PostgreSQL Bicep template for better control over resource creation order. - Ensured the correct sequencing of configuration resources related to performance insights. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent f84380b commit a5a6868

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.azure/modules/postgreSql/create.bicep

+3
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ resource pg_qs_query_capture_mode 'Microsoft.DBforPostgreSQL/flexibleServers/con
128128
value: 'all'
129129
source: 'user-override'
130130
}
131+
dependsOn: [track_io_timing]
131132
}
132133

133134
resource pgms_wait_sampling_query_capture_mode 'Microsoft.DBforPostgreSQL/flexibleServers/configurations@2024-08-01' = if (enableQueryPerformanceInsight) {
@@ -137,6 +138,7 @@ resource pgms_wait_sampling_query_capture_mode 'Microsoft.DBforPostgreSQL/flexib
137138
value: 'all'
138139
source: 'user-override'
139140
}
141+
dependsOn: [pg_qs_query_capture_mode]
140142
}
141143

142144
resource appInsightsWorkspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' existing = {
@@ -177,6 +179,7 @@ resource diagnosticSetting 'Microsoft.Insights/diagnosticSettings@2021-05-01-pre
177179
}
178180
]
179181
}
182+
dependsOn: [pgms_wait_sampling_query_capture_mode]
180183
}
181184

182185
module adoConnectionString '../keyvault/upsertSecret.bicep' = {

0 commit comments

Comments
 (0)