forked from robotechredmond/Azure-PowerShell-Snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-sql-dw-proxy.json
145 lines (125 loc) · 3.68 KB
/
azure-sql-dw-proxy.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"namePrefix": {
"type": "string",
"metadata": {
"description": "Naming prefix for each new resource created. 8-char max, lowercase alphanumeric"
}
},
"adminUsername": {
"type": "string",
"metadata": {
"description": "Name of the Administrator of the Azure SQL Server instance"
}
},
"adminPassword": {
"type": "securestring",
"metadata": {
"description": "Password for the Administrator account of the Azure SQL Server instance"
}
},
"collation": {
"type": "string",
"defaultValue": "SQL_Latin1_General_CP1_CI_AS",
"metadata": {
"description": "Collation type for SQL database"
}
},
"maxSizeBytes": {
"type": "string",
"defaultValue": "10995116277760",
"metadata": {
"description": "Maximum database size in bytes"
}
},
"performanceDwu": {
"type": "string",
"defaultValue": "DW400",
"allowedValues": [
"DW100",
"DW200",
"DW300",
"DW400",
"DW500",
"DW600",
"DW1000",
"DW1200",
"DW1500",
"DW2000",
"DW3000",
"DW6000"
],
"metadata": {
"description": "Performance tier of database in DWU"
}
}
},
"variables": {
"apiVersion": "2014-04-01",
"apiVersionDw": "2014-04-01-preview",
"sqlServerName": "[concat(parameters('namePrefix'),'srv')]",
"sqlDbName": "[concat(parameters('namePrefix'),'db')]",
"sqlFwRuleName": "AllowAllAzureIPs",
"sqlConnPolName": "Default",
"sqlEdition": "DataWarehouse"
},
"resources": [
{
"name": "[variables('sqlServerName')]",
"type": "Microsoft.Sql/servers",
"apiVersion": "[variables('apiVersion')]",
"location": "[resourceGroup().location]",
"dependsOn": [
],
"properties": {
"version": "12.0",
"administratorLogin": "[parameters('adminUsername')]",
"administratorLoginPassword": "[parameters('adminPassword')]"
}
},
{
"name": "[concat(variables('sqlServerName'), '/', variables('sqlDbName'))]",
"type": "Microsoft.Sql/servers/databases",
"apiVersion": "[variables('apiVersionDw')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', variables('sqlServerName'))]"
],
"properties": {
"edition": "[variables('sqlEdition')]",
"collation": "[parameters('collation')]",
"maxSizeBytes": "[parameters('maxSizeBytes')]",
"requestedServiceObjectiveName": "[parameters('performanceDwu')]"
}
},
{
"name": "[concat(variables('sqlServerName'), '/', variables('sqlFwRuleName'))]",
"type": "Microsoft.Sql/servers/firewallRules",
"apiVersion": "[variables('apiVersion')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', variables('sqlServerName'))]"
],
"properties": {
"startIpAddress": "0.0.0.0",
"endIpAddress": "0.0.0.0"
}
},
{
"name": "[concat(variables('sqlServerName'), '/', variables('sqlConnPolName'))]",
"type": "Microsoft.Sql/servers/connectionPolicies",
"apiVersion": "[variables('apiVersion')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', variables('sqlServerName'))]"
],
"properties": {
"connectionType": "Proxy"
}
}
],
"outputs": {
}
}