-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVM-Deploy-12-P30
More file actions
248 lines (248 loc) · 10.7 KB
/
VM-Deploy-12-P30
File metadata and controls
248 lines (248 loc) · 10.7 KB
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"virtualMachines_SQLPerfE32bdsv5_name": {
"defaultValue": "SQLPerfE32bdsv5",
"type": "String"
},
"virtualNetworks_SQLPerfE32bdsv5VNET_name": {
"defaultValue": "SQLPerfE32bdsv5VNET",
"type": "String"
},
"networkInterfaces_SQLPerfE32bdsv5VMNic_name": {
"defaultValue": "SQLPerfE32bdsv5VMNic",
"type": "String"
},
"networkSecurityGroups_SQLPerfE32bdsv5NSG_name": {
"defaultValue": "SQLPerfE32bdsv5NSG",
"type": "String"
},
"publicIPAddresses_SQLPerfE32bdsv5PublicIP_name": {
"defaultValue": "SQLPerfE32bdsv5PublicIP",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2020-11-01",
"name": "[parameters('networkSecurityGroups_SQLPerfE32bdsv5NSG_name')]",
"location": "centralus",
"properties": {
"securityRules": [
{
"name": "rdp",
"properties": {
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "3389",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 1000,
"direction": "Inbound",
"sourcePortRanges": [],
"destinationPortRanges": [],
"sourceAddressPrefixes": [],
"destinationAddressPrefixes": []
}
}
]
}
},
{
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2020-11-01",
"name": "[parameters('publicIPAddresses_SQLPerfE32bdsv5PublicIP_name')]",
"location": "centralus",
"sku": {
"name": "Basic",
"tier": "Regional"
},
"properties": {
"ipAddress": "20.29.112.241",
"publicIPAddressVersion": "IPv4",
"publicIPAllocationMethod": "Dynamic",
"idleTimeoutInMinutes": 4,
"ipTags": []
}
},
{
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2020-11-01",
"name": "[parameters('virtualNetworks_SQLPerfE32bdsv5VNET_name')]",
"location": "centralus",
"properties": {
"addressSpace": {
"addressPrefixes": [
"10.0.0.0/16"
]
},
"subnets": [
{
"name": "SQLPerfE32bdsv5Subnet",
"properties": {
"addressPrefix": "10.0.0.0/24",
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
}
}
],
"virtualNetworkPeerings": [],
"enableDdosProtection": false
}
},
{
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2022-03-01",
"name": "[parameters('virtualMachines_SQLPerfE32bdsv5_name')]",
"location": "centralus",
"dependsOn": [
"[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_SQLPerfE32bdsv5VMNic_name'))]"
],
"tags": {
"azsecpack": "nonprod",
"platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true"
},
"properties": {
"hardwareProfile": {
"vmSize": "Standard_E32bds_v5"
},
"storageProfile": {
"imageReference": {
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2022-Datacenter",
"version": "latest"
},
"osDisk": {
"osType": "Windows",
"name": "[concat(parameters('virtualMachines_SQLPerfE32bdsv5_name'), '_OS_Disk')]",
"createOption": "FromImage",
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": "Premium_LRS",
"id": "[resourceId('Microsoft.Compute/disks', concat(parameters('virtualMachines_SQLPerfE32bdsv5_name'), '_OS_Disk'))]"
},
"deleteOption": "Detach",
"diskSizeGB": 127
},
"dataDisks": [
{
"lun": 1,
"name": "[concat(parameters('virtualMachines_SQLPerfE32bdsv5_name'), '_DataDisk_0')]",
"createOption": "Attach",
"caching": "ReadOnly",
"managedDisk": {
"storageAccountType": "Premium_LRS",
"id": "[resourceId('Microsoft.Compute/disks', concat(parameters('virtualMachines_SQLPerfE32bdsv5_name'), '_DataDisk_0'))]"
},
"deleteOption": "Detach",
"diskSizeGB": 1024,
"toBeDetached": false
}
]
},
"osProfile": {
"computerName": "[parameters('virtualMachines_SQLPerfE32bdsv5_name')]",
"adminUsername": "azureuser",
"windowsConfiguration": {
"provisionVMAgent": true,
"enableAutomaticUpdates": true,
"patchSettings": {
"patchMode": "AutomaticByOS",
"assessmentMode": "ImageDefault"
}
},
"secrets": [],
"allowExtensionOperations": true,
"requireGuestProvisionSignal": true
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_SQLPerfE32bdsv5VMNic_name'))]"
}
]
}
}
},
{
"type": "Microsoft.Network/networkSecurityGroups/securityRules",
"apiVersion": "2020-11-01",
"name": "[concat(parameters('networkSecurityGroups_SQLPerfE32bdsv5NSG_name'), '/rdp')]",
"dependsOn": [
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_SQLPerfE32bdsv5NSG_name'))]"
],
"properties": {
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "3389",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 1000,
"direction": "Inbound",
"sourcePortRanges": [],
"destinationPortRanges": [],
"sourceAddressPrefixes": [],
"destinationAddressPrefixes": []
}
},
{
"type": "Microsoft.Network/virtualNetworks/subnets",
"apiVersion": "2020-11-01",
"name": "[concat(parameters('virtualNetworks_SQLPerfE32bdsv5VNET_name'), '/SQLPerfE32bdsv5Subnet')]",
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_SQLPerfE32bdsv5VNET_name'))]"
],
"properties": {
"addressPrefix": "10.0.0.0/24",
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
}
},
{
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2020-11-01",
"name": "[parameters('networkInterfaces_SQLPerfE32bdsv5VMNic_name')]",
"location": "centralus",
"dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_SQLPerfE32bdsv5PublicIP_name'))]",
"[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworks_SQLPerfE32bdsv5VNET_name'), 'SQLPerfE32bdsv5Subnet')]",
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_SQLPerfE32bdsv5NSG_name'))]"
],
"properties": {
"ipConfigurations": [
{
"name": "ipconfigSQLPerfE32bdsv5",
"properties": {
"privateIPAddress": "10.0.0.4",
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_SQLPerfE32bdsv5PublicIP_name'))]"
},
"subnet": {
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworks_SQLPerfE32bdsv5VNET_name'), 'SQLPerfE32bdsv5Subnet')]"
},
"primary": true,
"privateIPAddressVersion": "IPv4"
}
}
],
"dnsSettings": {
"dnsServers": []
},
"enableAcceleratedNetworking": false,
"enableIPForwarding": false,
"networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_SQLPerfE32bdsv5NSG_name'))]"
}
}
}
]
}