Skip to content

Commit

Permalink
fix(azure): ensure postgres configuration run in sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Nov 13, 2024
1 parent f84380b commit b122ec9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .azure/modules/postgreSql/create.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ resource pg_qs_query_capture_mode 'Microsoft.DBforPostgreSQL/flexibleServers/con
value: 'all'
source: 'user-override'
}
dependsOn: [track_io_timing]
}

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

resource appInsightsWorkspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' existing = {
Expand Down Expand Up @@ -177,6 +179,7 @@ resource diagnosticSetting 'Microsoft.Insights/diagnosticSettings@2021-05-01-pre
}
]
}
dependsOn: [pgms_wait_sampling_query_capture_mode]
}

module adoConnectionString '../keyvault/upsertSecret.bicep' = {
Expand Down

0 comments on commit b122ec9

Please sign in to comment.