-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazuredeploy.json
111 lines (105 loc) · 3.77 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
110
111
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"administratorLogin": {
"type": "string"
},
"administratorLoginPassword": {
"type": "securestring"
},
"collation": {
"type": "string",
"defaultValue": "SQL_Latin1_General_CP1_CI_AS"
},
"databaseName": {
"type": "string"
},
"edition": {
"type": "string",
"defaultValue": "Standard"
},
"maxSizeBytes": {
"type": "string",
"defaultValue": "268435456000"
},
"requestedServiceObjectiveId": {
"type": "string",
"defaultValue": "f1173c43-91bd-4aaa-973c-54e79e15235b"
},
"serverLocation": {
"type": "string"
},
"serverName": {
"type": "string"
},
"firewallStartIP": {
"type": "string"
},
"firewallEndIP": {
"type": "string"
},
"version": {
"type": "string",
"defaultValue": "12.0"
}
},
"variables": {
"nicName": "myVMNic",
"addressPrefix": "10.0.0.0/16",
"subnetName": "Subnet-1",
"subnetPrefix": "10.0.0.0/24",
"storageAccountType": "Standard_LRS",
"publicIPAddressName": "myPublicIP",
"publicIPAddressType": "Dynamic",
"vmStorageAccountContainerName": "vhds",
"vmName": "[parameters('vmDnsName')]",
"vmSize": "Standard_A0",
"virtualNetworkName": "MyVNET",
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
"subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]"
},
"resources": [
{
"apiVersion": "2014-04-01-preview",
"location": "[parameters('serverLocation')]",
"name": "[parameters('serverName')]",
"properties": {
"administratorLogin": "[parameters('administratorLogin')]",
"administratorLoginPassword": "[parameters('administratorLoginPassword')]",
"version": "[parameters('version')]"
},
"resources": [
{
"apiVersion": "2014-04-01-preview",
"dependsOn": [
"[concat('Microsoft.Sql/servers/', parameters('serverName'))]"
],
"location": "[parameters('serverLocation')]",
"name": "[parameters('databaseName')]",
"properties": {
"collation": "[parameters('collation')]",
"edition": "[parameters('edition')]",
"maxSizeBytes": "[parameters('maxSizeBytes')]",
"requestedServiceObjectiveId": "[parameters('requestedServiceObjectiveId')]"
},
"type": "databases"
},
{
"apiVersion": "2014-04-01-preview",
"dependsOn": [
"[concat('Microsoft.Sql/servers/', parameters('serverName'))]"
],
"location": "[parameters('serverLocation')]",
"name": "FirewallRule1",
"properties": {
"endIpAddress": "[parameters('firewallEndIP')]",
"startIpAddress": "[parameters('firewallStartIP')]"
},
"type": "firewallrules"
}
],
"type": "Microsoft.Sql/servers"
}
]
}