-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathweb-app.bicep
More file actions
36 lines (28 loc) · 849 Bytes
/
web-app.bicep
File metadata and controls
36 lines (28 loc) · 849 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
34
35
36
@description('The name of the web app')
param name string
@description('The location of the web app')
param location string
@description('The kind of web app')
param kind string = 'app'
@description('The ID of the App Service Plan')
param serverFarmResourceId string
@description('The site configuration')
param siteConfig object
@description('Application settings')
param appSettingsKeyValuePairs object
resource webApp 'Microsoft.Web/sites@2022-09-01' = {
name: name
location: location
kind: kind
properties: {
serverFarmId: serverFarmResourceId
siteConfig: siteConfig
}
}
resource webAppSettings 'Microsoft.Web/sites/config@2022-09-01' = {
parent: webApp
name: 'appsettings'
properties: appSettingsKeyValuePairs
}
output name string = webApp.name
output defaultHostName string = webApp.properties.defaultHostName