-
Notifications
You must be signed in to change notification settings - Fork 165
/
azuredeploy-maximal.json
79 lines (79 loc) · 3.74 KB
/
azuredeploy-maximal.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"_artifactsLocation": {
"type": "string",
"metadata": {
"description": "The base URI where artifacts required by this template are located. When the template is deployed using the accompanying scripts, a private location in the subscription will be used and this value will be automatically generated."
},
"defaultValue": "https://raw.githubusercontent.com/Azure/Moodle/master/"
},
"_artifactsLocationSasToken": {
"type": "securestring",
"metadata": {
"description": "The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated."
},
"defaultValue": ""
},
"sshPublicKey": {
"metadata": {
"description": "ssh public key"
},
"type": "string"
},
"mysqlflexHaEnabled": {
"allowedValues": [
"Disabled",
"SameZone",
"ZoneRedundant"
],
"defaultValue": "Disabled",
"metadata": {
"description": "High availability mode for azure database for mysql flexible server."
},
"type": "string"
}
},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"name": "mainTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"_artifactsLocation": { "value": "[parameters('_artifactsLocation')]" },
"_artifactsLocationSasToken": { "value": "[parameters('_artifactsLocationSasToken')]" },
"redisDeploySwitch": { "value": true },
"azureBackupSwitch": { "value": true },
"searchType": { "value": "elastic" },
"sshPublicKey": { "value": "[parameters('sshPublicKey')]" },
"dbServerType": { "value": "mysqlflex" },
"vnetDbDeploySwitch": { "value": true },
"mysqlflexSkuName": { "value": "Standard_E64ds_v4" },
"mysqlflexStgIops": { "value": 10000 },
"mysqlflexStgSizeGiB": { "value": 1024 },
"mysqlflexHaEnabled": { "value": "[parameters('mysqlflexHaEnabled')]" },
"fileServerType": { "value": "azurefiles" },
"fileServerDiskSize": { "value": 1024 },
"storageAccountType": { "value": "Premium_LRS" },
"autoscaleVmSku": { "value": "Standard_DS3_v2" }
},
"templateLink": {
"uri": "[concat(parameters('_artifactsLocation'), 'azuredeploy.json', parameters('_artifactsLocationSasToken'))]"
}
}
}
],
"outputs": {
"mainTemplateOutputs": {
"type": "object",
"value": "[reference('mainTemplate').outputs]"
}
},
"variables": {
"documentation01": "This wrapper template calls the main-template with maximum configs and the only required parameter (sshPublicKey).",
"documentation02": "For the best-possible performance, highly available, and most Moodle features, other parameters are fixed in this template and overridden as above."
}
}