Azdev-ify changes for latest /bicep/core
This commit is contained in:
31
infra/app/identity-db.bicep
Normal file
31
infra/app/identity-db.bicep
Normal file
@@ -0,0 +1,31 @@
|
||||
param name string
|
||||
param location string = resourceGroup().location
|
||||
param tags object = {}
|
||||
|
||||
param databaseName string = 'IdentityDB'
|
||||
param keyVaultName string
|
||||
|
||||
@secure()
|
||||
param sqlAdminPassword string
|
||||
@secure()
|
||||
param appUserPassword string
|
||||
|
||||
// Because databaseName is optional in main.bicep, we make sure the database name is set here.
|
||||
var defaultDatabaseName = 'Todo'
|
||||
var actualDatabaseName = !empty(databaseName) ? databaseName : defaultDatabaseName
|
||||
|
||||
module sqlServer2 '../core/database/sqlserver/sqlserver2.bicep' = {
|
||||
name: 'sqlServer02'
|
||||
params: {
|
||||
name: name
|
||||
location: location
|
||||
tags: tags
|
||||
databaseName: actualDatabaseName
|
||||
keyVaultName: keyVaultName
|
||||
sqlAdminPassword: sqlAdminPassword
|
||||
appUserPassword: appUserPassword
|
||||
}
|
||||
}
|
||||
|
||||
output sqlCatalogConnectionStringKey string = sqlServer2.outputs.connectionStringKey
|
||||
output sqlCatalogDatabase1Name string = sqlServer2.outputs.databaseName
|
||||
Reference in New Issue
Block a user