forked from benc-uk/python-demoapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebapp.bicep
More file actions
33 lines (29 loc) · 757 Bytes
/
Copy pathwebapp.bicep
File metadata and controls
33 lines (29 loc) · 757 Bytes
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
param location string = resourceGroup().location
param planName string = 'app-plan-linux'
param planTier string = 'P1v2'
param webappName string = 'python-demoapp'
param webappImage string = 'ghcr.io/benc-uk/python-demoapp:latest'
param weatherKey string = ''
param releaseInfo string = 'Released on ${utcNow('f')}'
resource appServicePlan 'Microsoft.Web/serverfarms@2020-10-01' = {
name: planName
location: location
kind: 'linux'
sku: {
name: planTier
}
properties: {
reserved: true
}
}
resource webApp 'Microsoft.Web/sites@2020-10-01' = {
name: webappName
location: location
properties: {
serverFarmId: appServicePlan.id
siteConfig: {
appSettings: []
linuxFxVersion: 'DOCKER|${webappImage}'
}
}
}