-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_deployment_template.json
74 lines (74 loc) · 2.54 KB
/
test_deployment_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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webSiteName": {
"type": "String",
"metadata": {
"description": "Website name should be unique across azurewebsites.net domain"
},
"minLength": 3
}
},
"variables": {
"hostingPlanName": "[concat(take(toLower(parameters('webSiteName')), 16), '-asp-', uniqueString(resourceGroup().id, parameters('webSiteName')))]"
},
"resources": [
{
"type": "Microsoft.Web/sites",
"apiVersion": "2020-06-01",
"name": "[parameters('webSiteName')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[variables('hostingPlanName')]"
],
"tags": {},
"properties": {
"name": "[parameters('webSiteName')]",
"siteConfig": {
"linuxFxVersion": "DOCKER|sanmoy/kolibri-alpine",
"appCommandLine": "",
"alwaysOn": "true"
},
"serverFarmId": "[variables('hostingPlanName')]",
"clientAffinityEnabled": false
},
"resources": [
{
"name": "appsettings",
"type": "config",
"apiVersion": "2020-06-01",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('webSiteName'))]"
],
"properties": {
"DOCKER_REGISTRY_SERVER_URL": "https://index.docker.io",
"DOCKER_REGISTRY_SERVER_USERNAME": "",
"DOCKER_REGISTRY_SERVER_PASSWORD": "",
"WEBSITES_ENABLE_APP_SERVICE_STORAGE": "true"
}
}
]
},
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2018-11-01",
"name": "[variables('hostingPlanName')]",
"location": "[resourceGroup().location]",
"dependsOn": [],
"tags": {},
"sku": {
"Tier": "PremiumV2",
"Name": "P1v2"
},
"kind": "linux",
"properties": {
"name": "[variables('hostingPlanName')]",
"workerSize": "3",
"workerSizeId": "3",
"numberOfWorkers": "1",
"reserved": true
}
}
]
}