-
Notifications
You must be signed in to change notification settings - Fork 9
/
azuredeployfunctionsettings.json
137 lines (136 loc) · 6.21 KB
/
azuredeployfunctionsettings.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"deploymentName": {
"defaultValue": "Loyalty",
"type": "string"
},
"sites_MiniCADFunctionApp_name": {
"defaultValue": "CADFunc",
"type": "string"
},
"storageAccounts_functionStorage_name": {
"defaultValue": "cadfuncstor",
"type": "string"
},
"serverfarms_DynamicsFunction_name": {
"defaultValue": "CADFuncPl",
"type": "string"
},
"repoURL": {
"type": "string",
"defaultValue": "https://github.com/shanepeckham/CADCouponFunction.git",
"metadata": {
"description": "The URL for the GitHub repository that contains the project to deploy."
}
},
"branch": {
"type": "string",
"defaultValue": "master",
"metadata": {
"description": "The branch of the GitHub repository to use."
}
}
},
"variables": {
"sites_MiniCADFunctionApp_name": "[concat(parameters('sites_MiniCADFunctionApp_name'), uniqueString(parameters('deploymentName')))]",
"storageAccounts_functionStorage_name": "[concat(parameters('storageAccounts_functionStorage_name'), uniqueString(parameters('deploymentName')))]",
"serverfarms_DynamicsFunction_name": "[concat(parameters('serverfarms_DynamicsFunction_name'), uniqueString(parameters('deploymentName')))]"
},
"resources": [
{
"comments": "",
"type": "Microsoft.Web/serverfarms",
"sku": {
"name": "Y1",
"tier": "Dynamic",
"size": "Y1",
"family": "Y",
"capacity": 0
},
"kind": "functionapp",
"name": "[variables('serverfarms_DynamicsFunction_name')]",
"apiVersion": "2015-08-01",
"location": "[resourceGroup().location]",
"properties": {
"name": "[variables('serverfarms_DynamicsFunction_name')]",
"numberOfWorkers": 0
},
"resources": [],
"dependsOn": []
},
{
"comments": "",
"type": "Microsoft.Storage/storageAccounts",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "Storage",
"name": "[variables('storageAccounts_functionStorage_name')]",
"apiVersion": "2016-01-01",
"location": "[resourceGroup().location]",
"tags": {},
"properties": {},
"resources": [],
"dependsOn": []
},
{
"comments": "",
"type": "Microsoft.Web/sites",
"kind": "functionapp",
"name": "[variables('sites_MiniCADFunctionApp_name')]",
"apiVersion": "2015-08-01",
"location": "[resourceGroup().location]",
"tags": {
},
"properties": {
"name": "[variables('sites_MiniCADFunctionApp_name')]",
"hostNames": [
"[concat(variables('sites_MiniCADFunctionApp_name'), '.azurewebsites.net')]"
],
"enabledHostNames": [
"[concat(variables('sites_MiniCADFunctionApp_name'), '.azurewebsites.net')]",
"[concat(variables('sites_MiniCADFunctionApp_name'), '.scm.azurewebsites.net')]"
],
"hostNameSslStates": [
{
"name": "[concat(variables('sites_MiniCADFunctionApp_name'), '.azurewebsites.net')]",
"sslState": 0,
"thumbprint": null,
"ipBasedSslState": 0
},
{
"name": "[concat(variables('sites_MiniCADFunctionApp_name'), '.scm.azurewebsites.net')]",
"sslState": 0,
"thumbprint": null,
"ipBasedSslState": 0
}
],
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('serverfarms_DynamicsFunction_name'))]"
},
"resources": [
{
"apiVersion": "2015-08-01",
"name": "appsettings",
"type": "config",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('sites_MiniCADFunctionApp_name'))]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccounts_functionStorage_name'))]"
],
"properties": {
"AzureWebJobsStorage": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageAccounts_functionStorage_name'), ';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccounts_functionStorage_name')), '2015-05-01-preview').key1,';')]",
"AzureWebJobsDashboard": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageAccounts_functionStorage_name'), ';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccounts_functionStorage_name')), '2015-05-01-preview').key1,';')]",
"FUNCTIONS_EXTENSION_VERSION": "latest",
"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageAccounts_functionStorage_name'), ';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccounts_functionStorage_name')), '2015-05-01-preview').key1,';')]",
"WEBSITE_CONTENTSHARE": "[variables('storageAccounts_functionStorage_name')]"
}
}
],
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('serverfarms_DynamicsFunction_name'))]"
]
}
]
}