-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazuredeploy.json
62 lines (62 loc) · 1.83 KB
/
azuredeploy.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appName": {
"defaultValue": "tfjs4azure",
"type": "string"
}
},
"variables": {
"servicePlanName": "[concat('serviceplan',uniqueString(resourceGroup().id))]"
},
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"name": "[variables('servicePlanName')]",
"apiVersion": "2016-03-01",
"location": "[resourceGroup().location]",
"sku": {
"name": "S1",
"capacity": 1
},
"kind": "linux",
"properties": {
"workerSizeId": 0,
"reserved": true,
"hostingEnvironment": ""
}
},
{
"type": "Microsoft.Web/sites",
"name": "[parameters('appName')]",
"apiVersion": "2016-03-01",
"location": "[resourceGroup().location]",
"properties": {
"name": "[parameters('appName')]",
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('servicePlanName'))]"
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('servicePlanName'))]"
],
"resources": [
{
"name": "appsettings",
"type": "config",
"apiVersion": "2016-03-01",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('appName'))]"
],
"tags": {
"displayName": "appSettings"
},
"properties": {
"WEBSITES_PORT":1234,
"DOCKER_CUSTOM_IMAGE_NAME": "abornst/tfjs4azure",
"DOCKER_CUSTOM_IMAGE_RUN_COMMAND": "abornst/tfjs4azure"
}
}
]
}
]
}