Repository navigation
Expand file tree
/
Copy pathlinuxnode.json
More file actions
208 lines (208 loc) · 5.75 KB
/
Copy pathlinuxnode.json
File metadata and controls
208 lines (208 loc) · 5.75 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
{
"$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"
}
},
"nicName": {
"type": "string",
"metadata": {
"description": "The network interface name for the VM"
}
},
"subnetId": {
"type": "string",
"metadata": {
"description": "The Id of the subnet in which the node is created"
}
},
"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"
}
},
"imgPublisher": {
"type": "string",
"metadata": {
"description": "The publisher of the VM image"
}
},
"imgOffer": {
"type": "string",
"metadata": {
"description": "The offer of the VM image"
}
},
"imgSku": {
"type": "string",
"metadata": {
"description": "The sku of the VM image"
}
},
"imgVersion": {
"type": "string",
"metadata": {
"description": "The version of the VM image"
}
},
"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"
}
},
"customData": {
"type": "string",
"metadata": {
"description": "The custom data in base64 format"
}
},
"scriptBaseUri": {
"type": "string",
"metadata": {
"description": "The base URI of the script"
}
},
"clusterName": {
"type": "string",
"metadata": {
"description": "The HPC cluster name"
}
},
"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'."
}
},
"computeNodePostConfigScript": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "Not used currently."
}
}
},
"variables": {
"osDiskUri": "[concat('http://',parameters('storageAccountName'),'.blob.core.windows.net/vhds/', toLower(parameters('vmName')), '-os', uniqueString(parameters('subnetId')), '.vhd')]"
},
"resources": [
{
"type": "Microsoft.Network/networkInterfaces",
"name": "[parameters('nicName')]",
"apiVersion": "[parameters('apiVersion')]",
"location": "[resourceGroup().location]",
"properties": {
"ipConfigurations": [
{
"name": "IPConfig",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"subnet": {
"id": "[parameters('subnetId')]"
}
}
}
]
}
},
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('vmName')]",
"apiVersion": "[parameters('apiVersion')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Network/networkInterfaces/', parameters('nicName'))]"
],
"properties": {
"availabilitySet": {
"id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('availabilitySetName'))]"
},
"hardwareProfile": {
"vmSize": "[parameters('vmSize')]"
},
"osProfile": {
"computerName": "[parameters('vmName')]",
"adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('adminPassword')]",
"customData": "[parameters('customData')]",
"linuxConfiguration": {
"disablePasswordAuthentication": "false"
}
},
"storageProfile": {
"imageReference": {
"publisher": "[parameters('imgPublisher')]",
"offer": "[parameters('imgOffer')]",
"sku": "[parameters('imgSku')]",
"version": "[parameters('imgVersion')]"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[variables('osDiskUri')]"
},
"caching": "ReadOnly",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('nicName'))]"
}
]
}
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmName'), '/installHPCNodeAgent')]",
"apiVersion": "[parameters('apiVersion')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('vmName'))]"
],
"properties": {
"publisher": "Microsoft.HpcPack",
"type": "LinuxNodeAgent",
"typeHandlerVersion": "1.6",
"autoUpgradeMinorVersion": true,
"protectedSettings": {
"ClusterName": "[concat(parameters('clusterName'), '.', parameters('privateDomainName'))]"
}
}
}
]
}
]
}