-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtemplate.json
117 lines (117 loc) · 4.75 KB
/
template.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"FunctionAppName": {
"type": "string"
},
"StorageAccountName": {
"type": "string"
},
"SQLDBFailoverMonitor_Server": {
"type": "string"
},
"SQLDBFailoverMonitor_User": {
"type": "string"
},
"SQLDBFailoverMonitor_Password": {
"type": "string"
},
"SendGridAPIKey": {
"type": "string"
},
"SQLDBFailoverMonitor_NotifyAddress": {
"type": "string"
}
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('StorageAccountName')]",
"apiVersion": "2018-07-01",
"location": "[resourceGroup().location]",
"sku": {
"name": "Standard_LRS"
},
"kind": "Storage"
},
{
"type": "Microsoft.Web/sites",
"kind": "functionapp",
"name": "[parameters('FunctionAppName')]",
"apiVersion": "2018-11-01",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('StorageAccountName'))]"
],
"properties": {
"name": "[parameters('FunctionAppName')]",
"siteConfig": {
"appSettings": [
{
"name": "FUNCTIONS_WORKER_RUNTIME",
"value": "dotnet"
},
{
"name": "AzureWebJobsStorage",
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=',parameters('StorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('StorageAccountName')), '2015-05-01-preview').key1)]"
},
{
"name": "FUNCTIONS_EXTENSION_VERSION",
"value": "~2"
},
{
"name": "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING",
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=',parameters('StorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('StorageAccountName')), '2015-05-01-preview').key1)]"
},
{
"name": "WEBSITE_CONTENTSHARE",
"value": "[concat(toLower(parameters('FunctionAppName')), toLower(uniqueString(resourceGroup().id)))]"
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "8.11.1"
},
{
"name": "SQLDBFailoverMonitor_Server",
"value": "[parameters('SQLDBFailoverMonitor_Server')]"
},
{
"name": "SQLDBFailoverMonitor_User",
"value": "[parameters('SQLDBFailoverMonitor_User')]"
},
{
"name": "SQLDBFailoverMonitor_Password",
"value": "[parameters('SQLDBFailoverMonitor_Password')]"
},
{
"name": "SendGridAPIKey",
"value": "[parameters('SendGridAPIKey')]"
},
{
"name": "SQLDBFailoverMonitor_NotifyAddress",
"value": "[parameters('SQLDBFailoverMonitor_NotifyAddress')]"
}
]
},
"clientAffinityEnabled": false,
"reserved": false
},
"resources": [
{
"apiVersion": "2018-11-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/sites/', parameters('FunctionAppName'))]"
],
"properties": {
"RepoUrl": "https://github.com/vitomaz-msft/SQLDBFailoverMonitor",
"branch": "master",
"IsManualIntegration": "false"
}
}
]
}
]
}