eliminate manually update the appsettings.json file

This commit is contained in:
zedy
2022-12-12 14:57:57 +08:00
parent cf9c7182d5
commit e5c6f71155
3 changed files with 9 additions and 4 deletions

View File

@@ -15,9 +15,9 @@ param location string
// }
param resourceGroupName string = ''
param webServiceName string = ''
param catalogDatabaseName string = ''
param catalogDatabaseName string = 'catalogDatabase'
param catalogDatabaseServerName string = ''
param identityDatabaseName string = ''
param identityDatabaseName string = 'identityDatabase'
param identityDatabaseServerName string = ''
param appServicePlanName string = ''
param keyVaultName string = ''
@@ -55,6 +55,10 @@ module web './core/host/appservice.bicep' = {
runtimeName: 'dotnetcore'
runtimeVersion: '6.0'
tags: union(tags, { 'azd-service-name': 'web' })
appSettings: {
CATALOG_CONNECTION_STRING_VALUE: '${catalogDb.outputs.connectionString}; Password=${appUserPassword}'
IDENTITY_CONNECTION_STRING_VALUE: '${identityDb.outputs.connectionString}; Password=${appUserPassword}'
}
}
}