Skip to content

Commit 7c45f86

Browse files
committed
Bicep: Add 'web' frontend apps App Settings configuration
1 parent 0fad2de commit 7c45f86

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Labs/deploy/azuredeploy.bicep

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,13 @@ resource appServiceWeb 'Microsoft.Web/sites@2022-03-01' = {
263263
}
264264
}
265265

266-
resource appServiceWebConnectionStrings 'Microsoft.Web/sites/config@2022-03-01' = {
266+
resource appServiceWebSettings 'Microsoft.Web/sites/config@2022-03-01' = {
267267
parent: appServiceWeb
268-
name: 'connectionstrings'
268+
name: 'appsettings'
269269
kind: 'string'
270270
properties: {
271-
MONGODB__CONNECTION: {
272-
value: 'mongodb+srv://${mongovCoreSettings.mongoClusterLogin}:${mongovCoreSettings.mongoClusterPassword}@${mongovCoreSettings.mongoClusterName}.mongocluster.cosmos.azure.com/?tls=true&authMechanism=SCRAM-SHA-256&retrywrites=false&maxIdleTimeMS=120000'
273-
type: 'Custom'
274-
}
271+
APPINSIGHTS_INSTRUMENTATIONKEY: appServiceWebInsights.properties.InstrumentationKey
272+
API_ENDPOINT: 'https://${backendApiContainerApp.properties.configuration.ingress.fqdn}'
275273
}
276274
}
277275

0 commit comments

Comments
 (0)