-
Notifications
You must be signed in to change notification settings - Fork 0
/
DemoEnvironment.bicep
41 lines (38 loc) · 1.06 KB
/
DemoEnvironment.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
param locations array
param appServicePlanName string
param appServiceSku string
param appServiceName string
param testAppServiceName string
resource appServicePlans 'Microsoft.Web/serverfarms@2021-02-01' = [for location in locations: {
name: '${appServicePlanName}-${location}'
location: location
sku: {
name: appServiceSku
tier: 'Standard'
}
properties: {
reserved: true
}
}]
module DemoWebAppModule './modules/AppService.bicep' = [for location in locations: {
name: '${deployment().name}-AppService-${location}'
params: {
appServicePlanName: '${appServicePlanName}-${location}'
appServiceName: '${appServiceName}-${location}'
location: location
}
dependsOn: [
appServicePlans
]
}]
module DemoTestWebAppModule './modules/AppService.bicep' = [for location in locations: {
name: '${deployment().name}-AppServiceTest-${location}'
params: {
appServicePlanName: '${appServicePlanName}-${location}'
appServiceName: '${testAppServiceName}-${location}'
location: location
}
dependsOn: [
appServicePlans
]
}]