-
Notifications
You must be signed in to change notification settings - Fork 7
/
template.json
63 lines (63 loc) · 2.07 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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string",
"metadata": {
"description": "Name of azure web app"
}
}
},
"variables": {
"hostingPlanName": "[concat(parameters('siteName'), 'serviceplan')]"
},
"resources": [
{
"type": "Microsoft.Web/sites",
"name": "[parameters('siteName')]",
"properties": {
"siteConfig": {
"appSettings": [
{
"name": "DOCKER_CUSTOM_IMAGE_NAME",
"value": "prashanthmadi/azure-appservice-nginx:1.13"
},
{
"name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
"value": true
}
],
"httpLoggingEnabled": true,
"logsDirectorySizeLimit": 36
},
"name": "[parameters('siteName')]",
"serverFarmId": "[variables('hostingPlanName')]",
"hostingEnvironment": ""
},
"apiVersion": "2016-03-01",
"location": "[resourceGroup().location]",
"dependsOn": [
"[variables('hostingPlanName')]"
]
},
{
"apiVersion": "2016-09-01",
"name": "[variables('hostingPlanName')]",
"type": "Microsoft.Web/serverfarms",
"location": "[resourceGroup().location]",
"properties": {
"name": "[variables('hostingPlanName')]",
"workerSizeId": "1",
"reserved": true,
"numberOfWorkers": "1",
"hostingEnvironment": ""
},
"sku": {
"Tier": "Standard",
"Name": "S1"
},
"kind": "linux"
}
]
}