Skip to content

Commit c9cd4cc

Browse files
committed
Tidy up common config
1 parent e548803 commit c9cd4cc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

rg_funcapp.bicep

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,14 @@ var flex_scale_and_concurrency = {
149149
instanceMemoryMB: 2048
150150
}
151151

152-
var function_app_config = use_shared_keys ? {
152+
// Define common app config
153+
var common_app_config = {
153154
runtime: function_runtime
154155
scaleAndConcurrency: flex_scale_and_concurrency
155-
} : union({
156-
runtime: function_runtime
157-
scaleAndConcurrency: flex_scale_and_concurrency
158-
}, {
156+
}
157+
158+
// For managed identity, add the deployment configuration, otherwise just use common config
159+
var function_app_config = use_shared_keys ? common_app_config : union(common_app_config, {
159160
deployment: flex_deployment_configuration
160161
})
161162

0 commit comments

Comments
 (0)