-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazuredeploy.json
88 lines (88 loc) · 3.14 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
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
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "0.0.0.1",
"parameters": {
"appName": {
"type": "string",
"defaultValue": "argonaut"
},
"registryName": {
"type": "string",
"defaultValue": "argonaut"
}
},
"variables": {},
"resources": [
{
"name": "[concat(parameters('registryName'))]",
"type": "Microsoft.ContainerRegistry/registries",
"apiVersion": "2017-10-01",
"location": "[resourceGroup().location]",
"sku": {
"name": "Basic"
},
"properties": {
"adminUserEnabled": true
}
},
{
"name": "[parameters('appName')]",
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2016-09-01",
"kind": "linux",
"location": "[resourceGroup().location]",
"properties": {
"name": "[parameters('appName')]"
},
"sku": {
"name": "S1",
"tier": "Standard",
"size": "S1",
"family": "S",
"capacity": 1
}
},
{
"name": "[parameters('appName')]",
"type": "Microsoft.Web/sites",
"apiVersion": "2016-08-01",
"kind": "app,linux,container",
"location": "[resourceGroup().location]",
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms/', parameters('appName'))]",
"siteConfig": {
"linuxFxVersion": "DOCKER|argonaut.azurecr.io/argonaut:latest",
"appSettings": [
{
"name": "DOCKER_REGISTRY_SERVER_URL",
"value": "[concat('https://', reference(parameters('registryName')).loginServer)]"
},
{
"name": "DOCKER_REGISTRY_SERVER_USERNAME",
"value": "[listCredentials(resourceId('Microsoft.ContainerRegistry/registries', parameters('registryName')), '2017-03-01').username]"
},
{
"name": "DOCKER_REGISTER_SERVER_PASSWORD",
"value": "[listCredentials(resourceId('Microsoft.ContainerRegistry/registries', parameters('registryName')), '2017-03-01').passwords[0].value]"
},
{
"name": "WEBSITES_PORT",
"value": "4000"
}
]
}
}
},
{
"name": "[parameters('appName')]",
"type": "microsoft.insights/components",
"apiVersion": "2015-05-01",
"location": "[resourceGroup().location]",
"kind": "web",
"properties": {
"Application_Type": "web"
}
}
],
"outputs": {}
}