-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazuredeploy.bicep
53 lines (51 loc) · 1.36 KB
/
azuredeploy.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
42
43
44
45
46
47
48
49
50
51
52
53
param resourceLocation string = resourceGroup().location
resource function_name 'Microsoft.Web/sites@2021-03-01' = {
kind: 'functionapp'
name: '<function-name>'
location: resourceLocation
properties: {
enabled: true
hostNameSslStates: [
{
name: '<function-name>.azurewebsites.net'
sslState: 'Disabled'
hostType: 'Standard'
}
{
name: '<function-name>.scm.azurewebsites.net'
sslState: 'Disabled'
hostType: 'Repository'
}
]
clientAffinityEnabled: true
containerSize: 1536
dailyMemoryTimeQuota: 0
httpsOnly: true
siteConfig: {
cors: {
allowedOrigins: [
'*'
]
}
ftpsState: 'Disabled'
}
}
identity: {
type: 'SystemAssigned'
}
dependsOn: []
}
resource function_name_appsettings 'Microsoft.Web/sites/config@2021-03-01' = {
parent: function_name
name: 'appsettings'
properties: {
AzureWebJobsStorage: '<storage-account-connection-string>'
AzureWebJobsDisableHomepage: 'true'
WEBSITE_TIME_ZONE: 'W. Europe Standard Time'
WEBSITE_CONTENTAZUREFILECONNECTIONSTRING: '<storage-account-connection-string>'
WEBSITE_CONTENTSHARE: '<function-name>'
APPLICATIONINSIGHTS_CONNECTION_STRING: '<app-insights-connection-string'
FUNCTIONS_EXTENSION_VERSION: '~4'
FUNCTIONS_WORKER_RUNTIME: 'dotnet'
}
}