This repository has been archived by the owner on Sep 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
deploy.function.config.json
68 lines (68 loc) · 4.3 KB
/
deploy.function.config.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"functionName": {
"type": "string"
},
"storageName": {
"type": "string"
},
"aciDetailsStorageName": {
"type": "string"
},
"hostingPlanName": {
"type": "string"
}
},
"resources": [
{
"apiVersion": "2016-03-01",
"name": "[parameters('functionName')]",
"type": "Microsoft.Web/Sites",
"properties": {
"name": "[parameters('functionName')]",
"siteConfig": {},
"clientAffinityEnabled": false,
"serverFarmId": "[concat('/subscriptions/', subscription().subscriptionId,'/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]",
"hostingEnvironment": ""
},
"resources": [
{
"apiVersion": "2015-08-01",
"name": "appsettings",
"type": "config",
"dependsOn": [
"[resourceId(subscription().subscriptionId, resourceGroup().name, 'Microsoft.Web/Sites', parameters('functionName'))]"
],
"properties": {
"FUNCTIONS_EXTENSION_VERSION": "~2",
"WEBSITE_NODE_DEFAULT_VERSION": "10.6.0",
"AzureWebJobsSecretStorageType": "files",
"AzureWebJobsDashboard": "[concat('DefaultEndpointsProtocol=https;AccountName=',parameters('storageName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('storageName')), '2015-05-01-preview').key1)]",
"AzureWebJobsStorage": "[concat('DefaultEndpointsProtocol=https;AccountName=',parameters('storageName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('storageName')), '2015-05-01-preview').key1)]",
"SUBSCRIPTIONID": "[subscription().subscriptionId]",
"APPINSIGHTS_INSTRUMENTATIONKEY": "[reference(resourceId('microsoft.insights/components/', parameters('functionName')), '2015-05-01').InstrumentationKey]",
"AZURE_STORAGE_ACCOUNT": "[parameters('aciDetailsStorageName')]",
"AZURE_STORAGE_ACCESS_KEY": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('aciDetailsStorageName')), '2015-05-01-preview').key1]",
"ACI_SET_SESSIONS_URL": "[listsecrets(resourceId('Microsoft.Web/sites/functions', parameters('functionName'), 'ACISetSessions'),'2015-08-01').trigger_url]",
"ACI_DELETE_URL": "[listsecrets(resourceId('Microsoft.Web/sites/functions', parameters('functionName'), 'ACIDelete'),'2015-08-01').trigger_url]",
"ACI_CREATE_URL": "[listsecrets(resourceId('Microsoft.Web/sites/functions', parameters('functionName'), 'ACICreate'),'2015-08-01').trigger_url]",
"ACI_SET_STATE_URL": "[listsecrets(resourceId('Microsoft.Web/sites/functions', parameters('functionName'), 'ACISetState'),'2015-08-01').trigger_url]",
"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING": "[concat('DefaultEndpointsProtocol=https;AccountName=', parameters('storageName'), ';AccountKey=', listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('storageName')), '2015-05-01-preview').key1)]",
"WEBSITE_CONTENTSHARE": "[toLower(parameters('functionName'))]",
"AzureWebJobs.ACIAutoScaler.Disabled":true,
"CONTAINER_GROUP_TEMPLATE":"",
"AUTOSCALER_MINIMUM_INSTANCES":"1",
"AUTOSCALER_MAXIMUM_INSTANCES":"10",
"AUTOSCALER_SCALE_OUT_THRESHOLD":"0.8",
"AUTOSCALER_SCALE_IN_THRESHOLD":"0.6",
"AUTOSCALER_COOLDOWN_IN_MINUTES":"10"
}
}
],
"location": "[resourceGroup().location]",
"kind": "functionapp"
}
]
}