forked from MicrosoftLearning/eShopOnWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webapp.bicep
38 lines (36 loc) · 909 Bytes
/
webapp.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
param webAppName string = uniqueString(resourceGroup().id) // Generate unique String for web app name
param sku string = 'B1' // The SKU of App Service Plan
param location string = resourceGroup().location
var appServicePlanName = toLower('AppServicePlan-${webAppName}')
resource appServicePlan 'Microsoft.Web/serverfarms@2020-06-01' = {
name: appServicePlanName
location: location
properties: {
reserved: true
}
sku: {
name: sku
}
kind: 'app'
}
resource appService 'Microsoft.Web/sites@2020-06-01' = {
name: webAppName
kind: 'app'
location: location
properties: {
serverFarmId: appServicePlan.id
siteConfig: {
linuxFxVersion: 'DOTNETCORE|8.0'
appSettings: [
{
name: 'ASPNETCORE_ENVIRONMENT'
value: 'Development'
}
{
name: 'UseOnlyInMemoryDatabase'
value: 'true'
}
]
}
}
}