-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontend.json
More file actions
74 lines (74 loc) · 2.81 KB
/
frontend.json
File metadata and controls
74 lines (74 loc) · 2.81 KB
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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"enterpriseCode": {
"defaultValue": "par",
"type": "string"
},
"environmentCode": {
"defaultValue": "ci",
"type": "string"
},
"locationCode": {
"defaultValue": "sea",
"type": "string"
},
"aspLocationCode": {
"defaultValue": "sea",
"type": "string"
},
"storageLocationCode": {
"defaultValue": "sea",
"type": "string"
},
"insightsLocationCode": {
"defaultValue": "sea",
"type": "string"
},
"resourcelocation": {
"defaultValue": "[resourceGroup().location]",
"type": "string"
},
"contextCode": {
"type": "string"
}
},
"variables": {
"webAppName": "[concat(parameters('enterpriseCode'), '-', parameters('environmentCode'), '-', parameters('locationCode'), '-aglr-', parameters('contextCode'))]",
"aspName": "[concat(parameters('enterpriseCode'), '-', parameters('environmentCode'), '-', parameters('aspLocationCode'), '-asp-', parameters('contextCode'))]",
"storageName": "[concat(parameters('enterpriseCode'), parameters('environmentCode'), parameters('storageLocationCode'), 'str', parameters('contextCode'))]",
"storageAccountid": "[concat(resourceGroup().id,'/providers/','Microsoft.Storage/storageAccounts/', variables('storageName'))]",
"insightsName": "[concat(parameters('enterpriseCode'), '-', parameters('environmentCode'), '-', parameters('insightsLocationCode'), '-ins-', parameters('contextCode'))]"
},
"resources": [
{
"apiVersion": "2015-08-01",
"type": "Microsoft.Web/sites",
"name": "[variables('webAppName')]",
"location": "[parameters('resourceLocation')]",
"dependsOn": [],
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('aspName'))]",
"siteConfig": {
"appSettings": [
{
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
"value": "[reference(resourceId('Microsoft.Insights/components', variables('insightsName')), '2014-04-01').InstrumentationKey]"
}
]
}
}
}
],
"outputs": {
"webAppName": {
"value": "[variables('webAppName')]",
"type": "string"
},
"storageName": {
"value": "[variables('storageName')]",
"type": "string"
}
}
}