-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.json
93 lines (93 loc) · 2.46 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
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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appServicePlanName": {
"type": "String",
"metadata": {
"description": "The name of the App Service Plan."
}
},
"appName": {
"type": "String",
"metadata": {
"description": "The name of the web app that you wish to create."
}
},
"skuTier": {
"defaultValue": "B1",
"allowedValues": [
"B1",
"B2",
"B3",
"S1",
"S2",
"S3",
"P1v2",
"P2v2",
"P3v2"
],
"type": "String",
"metadata": {
"description": "The pricing tier for the App Service Plan."
}
}
},
"variables": {
"dockerImage": "qdrant/qdrant:latest",
"dockerRegistry": "https://registry.hub.docker.com"
},
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2020-06-01",
"name": "[parameters('appServicePlanName')]",
"location": "[resourceGroup().location]",
"sku": {
"name": "[parameters('skuTier')]",
"capacity": 1
},
"kind": "linux",
"properties": {
"name": "[parameters('appServicePlanName')]",
"workerSize": "0",
"workerSizeId": "0",
"numberOfWorkers": "1",
"reserved": true
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2020-06-01",
"name": "[parameters('appName')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms/', parameters('appServicePlanName'))]"
],
"kind": "app,linux,container",
"properties": {
"name": "[parameters('appName')]",
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('appServicePlanName'))]",
"siteConfig": {
"appSettings": [
{
"name": "DOCKER_REGISTRY_SERVER_URL",
"value": "[variables('dockerRegistry')]"
},
{
"name": "WEBSITES_PORT",
"value": "6333"
}
],
"alwaysOn": true,
"linuxFxVersion": "[concat('DOCKER|', variables('dockerImage'))]"
},
"authSettings": {
"isEnabled": true,
"unauthenticatedClientAction": "RedirectToLoginPage",
"defaultProvider": "AzureActiveDirectory"
}
}
}
]
}