forked from jennifermarsman/cognitive-search-qna-solution
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinkedazuredeploy.json
78 lines (75 loc) · 2.79 KB
/
linkedazuredeploy.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
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"functionAppName": {
"type": "string"
},
"siteName": {
"type": "string"
},
"hostingPlanName": {
"type": "string"
},
"reactProject": {
"type": "string"
},
"repoURL": {
"type": "string"
},
"branch": {
"type": "string"
}
},
"variables": {
"zipUrl": "https://qnastoragei3iohrgwgujpo.blob.core.windows.net/code/web.zip"
},
"resources": [
{
"type": "Microsoft.Web/sites",
"apiVersion": "2020-06-01",
"name": "[parameters('siteName')]",
"location": "[resourceGroup().location]",
"dependsOn": [],
"properties": {
"serverFarmId": "[parameters('hostingPlanName')]"
},
"resources": [
{
"apiVersion": "2018-11-01",
"name": "appsettings",
"type": "config",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]"
],
"properties": {
"PROJECT": "[parameters('reactProject')]",
"WEBSITE_NODE_DEFAULT_VERSION": "10.15.3",
"REACT_APP_FUNCTION_URL": "[concat('https://',parameters('functionAppName'),'.azurewebsites.net')]",
"REACT_APP_FUNCTION_CODE": "[listkeys(concat(resourceId('Microsoft.Web/sites', parameters('functionAppName')), '/host/default/'),'2019-08-01').functionKeys.default]"
}
},
{
"type": "Extensions",
"apiVersion": "2015-02-01",
"name": "MSDeploy",
"dependsOn": [
"[concat('Microsoft.Web/Sites/', parameters('siteName'))]",
"[resourceId('Microsoft.Web/Sites/config', parameters('siteName'), 'appsettings')]"
],
"properties": {
"packageUri": "[variables('zipUrl')]",
"dbType": "None",
"connectionString": ""
}
}
]
}
],
"outputs": {
"URL": {
"type": "string",
"value": "[concat('https://',parameters('functionAppName'),'.azurewebsites.net/api/init-accelerator?code=',listkeys(concat(resourceId('Microsoft.Web/sites', parameters('functionAppName')), '/host/default/'),'2019-08-01').functionKeys.default)]"
}
}
}