-
Notifications
You must be signed in to change notification settings - Fork 165
/
mysql.json
63 lines (63 loc) · 2.96 KB
/
mysql.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
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"moodleCommon": {
"metadata": {
"description": "Common Moodle values"
},
"type": "object"
}
},
"resources": [
{
"type": "Microsoft.DBforMySQL/servers",
"apiVersion": "2017-04-30-preview",
"kind": "",
"location": "[resourceGroup().location]",
"name": "[parameters('moodleCommon').serverName]",
"properties": {
"administratorLogin": "[parameters('moodleCommon').dbLogin]",
"administratorLoginPassword": "[parameters('moodleCommon').dbLoginPassword]",
"sslEnforcement": "[parameters('moodleCommon').sslEnforcement]",
"storageMB": "[parameters('moodleCommon').skuSizeMB]",
"version": "[parameters('moodleCommon').mysqlVersion]"
},
"resources": [
{
"apiVersion": "2017-04-30-preview",
"dependsOn": [
"[concat('Microsoft.DBforMySQL/servers/', parameters('moodleCommon').serverName)]"
],
"location": "[resourceGroup().location]",
"name": "[parameters('moodleCommon').firewallRuleName]",
"properties": {
"startIpAddress": "0.0.0.0",
"endIpAddress": "255.255.255.255"
},
"type": "firewallRules"
}
],
"sku": {
"capacity": "[parameters('moodleCommon').skuCapacityDTU]",
"family": "[parameters('moodleCommon').skuFamily]",
"name": "[parameters('moodleCommon').skuName]",
"size": "[parameters('moodleCommon').skuSizeMB]",
"tier": "[parameters('moodleCommon').skuTier]"
}
}
],
"variables": {
"documentation1": "This sub-template creates a mysql server. It expects certain values in the 'common' datastructure.",
"documentation10": " serverName - Mysql server name",
"documentation11": " mysqlVersion - Mysql version",
"documentation2": " administratorLogin - mysql admin username",
"documentation3": " administratorLoginPassword - mysql admin password",
"documentation4": " location - Mysql server location",
"documentation5": " skuCapacityDTU - Mysql database trasaction units",
"documentation6": " skuFamily - Mysql sku family",
"documentation7": " skuName - Mysql sku name",
"documentation8": " skuSizeMB - Mysql sku size in mb",
"documentation9": " skuTier - Mysql sku tier"
}
}