-
Notifications
You must be signed in to change notification settings - Fork 2
/
azuredeploy.json
109 lines (109 loc) · 4.56 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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"StorageAccountName": {
"type": "string",
"minLength": 3,
"maxLength": 24,
"metadata": {
"Description": "The field can contain only lowercase letters and numbers. Name must be between 3 and 24 characters."
}
}
},
"variables": {
"zipFrontendUrl": "https://github.com/glueckkanja/gk-m365-workplacecloudstorage/raw/master/dist/m365wcs.zip",
"AppServicePlanName": "[concat('m365wcs-sp',uniquestring(resourceGroup().id))]",
"AppServiceName": "[concat('m365wcs-app',uniquestring(resourceGroup().id))]"
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-04-01",
"name": "[parameters('StorageAccountName')]",
"location": "[resourceGroup().location]",
"sku": {
"name": "Standard_LRS"
},
"kind": "StorageV2",
"properties": {
"accountType": "Standard_LRS",
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"enabled": true
},
"blob": {
"enabled": true
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot"
}
},
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2018-02-01",
"name": "[variables('AppServicePlanName')]",
"location": "[resourceGroup().location]",
"sku": {
"Tier": "Standard",
"Name": "S1"
},
"properties": {
"name": "[variables('AppServicePlanName')]",
"workerSize": 1,
"numberOfWorkers": 1
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2018-02-01",
"name": "[variables('AppServiceName')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Web/serverfarms/', variables('AppServicePlanName'))]"
],
"tags": {
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', variables('AppServicePlanName'))]": "Resource",
"displayName": "M365 Workplace Cloud Storage"
},
"properties": {
"name": "[variables('AppServiceName')]",
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms/', variables('AppServicePlanName'))]",
"siteConfig": {
"appSettings": [
{
"name": "WEBSITE_RUN_FROM_PACKAGE",
"value": "[variables('zipFrontendUrl')]"
},
{
"name": "AppConfig:AzureConfig:StorageConfig:Connection",
"value": "[Concat('DefaultEndpointsProtocol=https;AccountName=',parameters('StorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('StorageAccountName')), '2019-04-01').keys[0].value, ';EndpointSuffix=core.windows.net')]"
},
{
"name": "AppConfig:EnterpriseModeSiteListEnabled",
"value": "true"
},
{
"name": "AppConfig:NonSensitiveFilesEnabled",
"value": "true"
},
{
"name": "AppConfig:FavoriteListsEnabled",
"value": "true"
}
]
}
}
}
]
}