Repository navigation
Expand file tree
/
Copy pathheadnode-rdma-enabled.json
More file actions
172 lines (172 loc) · 5.32 KB
/
Copy pathheadnode-rdma-enabled.json
File metadata and controls
172 lines (172 loc) · 5.32 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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"apiVersion": {
"type": "string",
"metadata": {
"description": "The API version"
}
},
"vmName": {
"type": "string",
"metadata": {
"description": "The VM name"
}
},
"vmSize": {
"type": "string",
"metadata": {
"description": "The VM role size"
}
},
"storageAccountName": {
"type": "string",
"metadata": {
"description": "The storage account name to store the VHD of the VM"
}
},
"nicName": {
"type": "string",
"metadata": {
"description": "The network interface name"
}
},
"adminUsername": {
"type": "string",
"metadata": {
"description": "The user name of the administrator"
}
},
"adminPassword": {
"type": "securestring",
"metadata": {
"description": "The password of the administrator"
}
},
"availabilitySetName": {
"type": "string",
"metadata": {
"description": "The availability set name"
}
},
"scriptBaseUri": {
"type": "string",
"metadata": {
"description": "The base URI of the script"
}
},
"privateDomainName": {
"type": "string",
"metadata": {
"description": "The fully qualified domain name (FQDN) for the private domain forest which will be created by this template, for example 'hpc.local'."
}
}
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('vmName')]",
"apiVersion": "[parameters('apiVersion')]",
"location": "[resourceGroup().location]",
"properties": {
"availabilitySet": {
"id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('availabilitySetName'))]"
},
"hardwareProfile": {
"vmSize": "[parameters('vmSize')]"
},
"osProfile": {
"computerName": "[parameters('vmName')]",
"adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('adminPassword')]"
},
"storageProfile": {
"imageReference": {
"publisher": "MicrosoftWindowsServerHPCPack",
"offer": "WindowsServerHPCPack",
"sku": "2012R2",
"version": "latest"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat('http://',parameters('storageAccountName'),'.blob.core.windows.net/vhds/', toLower(parameters('vmName')), '-osdisk.vhd')]"
},
"caching": "ReadOnly",
"createOption": "FromImage"
},
"dataDisks": [
{
"name": "datadisk",
"vhd": {
"uri": "[concat('http://',parameters('storageAccountName'),'.blob.core.windows.net/vhds/', toLower(parameters('vmName')), '-datadisk.vhd')]"
},
"caching": "None",
"createOption": "Empty",
"diskSizeGB": "200",
"lun": 0
}
]
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('nicName'))]"
}
]
}
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmName'),'/installRDMADriver')]",
"apiVersion": "[parameters('apiVersion')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('vmName'))]"
],
"properties": {
"publisher": "Microsoft.HpcCompute",
"type": "HpcVmDrivers",
"typeHandlerVersion": "1.1"
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmName'),'/promoteDomainController')]",
"apiVersion": "[parameters('apiVersion')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('vmName'))]",
"[concat('Microsoft.Compute/virtualMachines/', parameters('vmName'),'/extensions/installRDMADriver')]"
],
"properties": {
"publisher": "Microsoft.Powershell",
"type": "DSC",
"typeHandlerVersion": "2.19",
"autoUpgradeMinorVersion": true,
"settings": {
"configuration": {
"url": "[concat(parameters('scriptBaseUri'),'/CreateADPDC.ps1.zip')]",
"script": "CreateADPDC.ps1",
"function": "CreateADPDC"
},
"configurationArguments": {
"DomainName": "[parameters('privateDomainName')]"
}
},
"protectedSettings": {
"configurationArguments": {
"AdminCreds": {
"UserName": "[parameters('adminUsername')]",
"Password": "[parameters('adminPassword')]"
}
}
}
}
}
]
}
]
}