This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
azuredeploy.json
147 lines (147 loc) · 4.21 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appServicePlanName": {
"type": "string",
"metadata": {
"description": "The name of application service plan."
}
},
"siteName": {
"type": "string"
},
"appServicePlanSkuName": {
"type": "string",
"defaultValue": "S1",
"allowedValues": [
"F1",
"D1",
"B1",
"B2",
"B3",
"S1",
"S2",
"S3",
"P1",
"P2",
"P3",
"P4"
],
"metadata": {
"description": "Describes plan's pricing tier and capacity. Check details at https://azure.microsoft.com/pricing/details/app-service/"
}
},
"virtoCommercePlatformUrl": {
"type": "string",
"metadata": {
"description": "The endpoint url of Virto Commerce Platform."
}
},
"virtoCommercePlatformUserName": {
"type": "string",
"metadata": {
"description": "The administrator username of the Virto Commerce Platform."
}
},
"virtoCommercePlatformPassword": {
"type": "securestring",
"metadata": {
"description": "The administrator password of the Virto Commerce Platform."
}
},
"contentStorageConnectionString": {
"type": "string",
"metadata": {
"description": "Connection string to content. Check details at https://virtocommerce.com/docs/latest/getting-started/deploy-from-precompiled-binaries-azure/"
}
},
"repoUrl": {
"type": "string",
"defaultValue": "https://github.com/VirtoCommerce/vc-storefront"
},
"branch": {
"type": "string",
"defaultValue": "master"
}
},
"resources": [
{
"apiVersion": "2018-02-01",
"type": "Microsoft.Web/serverfarms",
"name": "[parameters('appServicePlanName')]",
"location": "[resourceGroup().location]",
"kind": "app",
"sku": {
"name": "[parameters('appServicePlanSkuName')]",
"capacity": 1
},
"properties": {
"name": "[parameters('appServicePlanName')]",
"numberOfWorkers": "1",
"reserved": false
}
},
{
"apiVersion": "2018-11-01",
"type": "Microsoft.Web/sites",
"name": "[parameters('siteName')]",
"location": "[resourceGroup().location]",
"kind": "app",
"dependsOn": [
"[concat('Microsoft.Web/serverFarms/', parameters('appServicePlanName'))]"
],
"tags": {
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('appServicePlanName'))]": "empty"
},
"properties": {
"name": "[parameters('siteName')]",
"serverFarmId": "[concat( resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('appServicePlanName'))]",
"siteConfig": {
"appSettings": [
{
"name": "VirtoCommerce:Endpoint:Url",
"value": "[parameters('virtoCommercePlatformUrl')]"
},
{
"name": "VirtoCommerce:Endpoint:UserName",
"value": "[parameters('virtoCommercePlatformUserName')]"
},
{
"name": "VirtoCommerce:Endpoint:Password",
"value": "[parameters('virtoCommercePlatformPassword')]"
}
],
"connectionStrings": [
{
"name": "ContentConnectionString",
"connectionString": "[parameters('contentStorageConnectionString')]",
"type": "Custom"
}
],
"metadata": [
{
"name": "CURRENT_STACK",
"value": "dotnetcore"
}
]
}
},
"resources": [
{
"apiVersion": "2016-08-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/sites/', parameters('siteName'))]"
],
"properties": {
"RepoUrl": "[parameters('repoUrl')]",
"branch": "[parameters('branch')]",
"IsManualIntegration": true
}
}
]
}
]
}