-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.bicep
41 lines (37 loc) · 1.07 KB
/
example.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 location string = resourceGroup().location
import * as timeZoneHelper from 'Helpers/timezoneHelper.bicep' //Import TimeZone helper.
param timezone timeZoneHelper.timeZoneParameterType = 'Europe/Berlin' //Set the TimeZone parameter of the timezoneParameterType
//Variables
var timezoneDataObject = timeZoneHelper.get(timezone)
// Windows Function App Example
resource functionAppWindows 'Microsoft.Web/sites@2023-01-01' = {
name: 'fa-windows-example'
location: location
kind: 'functionapp' // This will be a Windows function app.
properties: {
siteConfig: {
appSettings: [
{
name: 'WEBSITE_TIME_ZONE'
value: timezoneDataObject.Windows
}
]
}
}
}
// Linux Function App Example
resource functionAppLinux 'Microsoft.Web/sites@2023-01-01' = {
name: 'fa-linux-example'
location: location
kind: 'functionapp, linux' // This will be a Linux function app.
properties: {
siteConfig: {
appSettings: [
{
name: 'WEBSITE_TIME_ZONE'
value: timezoneDataObject.IANA
}
]
}
}
}