-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.bicep
44 lines (39 loc) · 1.16 KB
/
Main.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import * as types from 'types.bicep'
param sqlSettings types.sqlSettingsType
param appServicePlanSku types.appServicePlanSkuType
param storageAccountSettings types.storageAccountSettingsType[]
param templateSettings types.templateSettingsType
var keyVaultName = 'kv-${templateSettings.sufix}-${templateSettings.env}'
var appConfigurationName = 'appconfig-${templateSettings.sufix}-${templateSettings.env}'
module configurationModule './Configuration.bicep' = {
name: 'configurationModule'
params: {
keyVaultName: keyVaultName
appConfigurationName: appConfigurationName
location: templateSettings.location
}
}
module apiModule './Api.bicep' = {
name: 'apiModule'
dependsOn: [
configurationModule
]
params: {
appServicePlanSku: appServicePlanSku
keyVaultName: keyVaultName
appConfigurationName: appConfigurationName
templateSettings: templateSettings
}
}
module storageModule './Storage.bicep' = {
name: 'storageModule'
dependsOn: [
configurationModule
]
params: {
keyVaultName: keyVaultName
sqlSettings: sqlSettings
storageAccountSettings: storageAccountSettings
templateSettings: templateSettings
}
}