-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy-funcapp.json
116 lines (116 loc) · 3.51 KB
/
deploy-funcapp.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"variables": {
"hostingPlanName": "[concat(toLower(parameters('name')), 'freeplan')]",
"serverFarmResourceGroup": "[resourceGroup().id]",
"workerSize": "0",
"subscriptionId": "[subscription().subscriptionId]",
"sku": "Free",
"skuCode": "F1"
},
"parameters": {
"name": {
"type": "string",
"metadata": {
"description": "It's your Azure Functions domain name"
}
},
"storageName": {
"type": "string"
},
"vmDetailsStorageName":{
"type": "string"
},
"location": {
"type": "string"
},
"FuncsGitRepo": {
"type": "string",
"defaultValue": "https://github.com/PoisonousJohn/AzureGameRoomsScaler"
}
},
"resources": [
{
"type": "microsoft.insights/components",
"apiVersion": "2015-05-01",
"name": "[parameters('name')]",
"location": "South Central US",
"properties": {
"ApplicationId": "[parameters('name')]"
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('storageName')]",
"location": "[parameters('location')]",
"properties": {
"accountType": "Standard_LRS"
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('vmDetailsStorageName')]",
"location": "[parameters('location')]",
"properties": {
"accountType": "Standard_LRS"
}
},
{
"apiVersion": "2016-03-01",
"name": "[parameters('name')]",
"type": "Microsoft.Web/Sites",
"properties": {
"name": "[parameters('name')]",
"siteConfig": {},
"clientAffinityEnabled": false,
"serverFarmId": "[concat('/subscriptions/', variables('subscriptionId'),'/resourcegroups/', variables('serverFarmResourceGroup'), '/providers/Microsoft.Web/serverfarms/', variables('hostingPlanName'))]",
"hostingEnvironment": ""
},
"resources": [
{
"apiVersion": "2015-08-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites/', parameters('name'))]"
],
"properties": {
"RepoUrl": "[parameters('FuncsGitRepo')]",
"branch": "master",
"IsManualIntegration": "true"
}
}
],
"dependsOn": [
"[concat('Microsoft.Web/serverfarms/', variables('hostingPlanName'))]",
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageName'))]",
"[resourceId('Microsoft.Storage/storageAccounts', parameters('vmDetailsStorageName'))]"
],
"location": "[parameters('location')]",
"tags": {
"[concat('hidden-related:', '/subscriptions/', variables('subscriptionId'),'/resourcegroups/', variables('serverFarmResourceGroup'), '/providers/Microsoft.Web/serverfarms/', variables('hostingPlanName'))]": "empty"
},
"kind": "functionapp"
},
{
"apiVersion": "2016-09-01",
"name": "[variables('hostingPlanName')]",
"type": "Microsoft.Web/serverfarms",
"location": "[parameters('location')]",
"properties": {
"name": "[variables('hostingPlanName')]",
"workerSizeId": "[variables('workerSize')]",
"reserved": false,
"numberOfWorkers": "1",
"hostingEnvironment": ""
},
"sku": {
"Tier": "[variables('sku')]",
"Name": "[variables('skuCode')]"
}
}
]
}