Skip to content

Commit a3bbdae

Browse files
committed
Add updated samples
1 parent 26d2146 commit a3bbdae

File tree

4 files changed

+1230
-1231
lines changed

4 files changed

+1230
-1231
lines changed

articles/operator-nexus/cluster-jsonc-example.md

Lines changed: 140 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: "Azure Operator Nexus - Example of cluster.jsonc template file"
33
description: Example of cluster.jsonc template file to use with ARM template in creating a cluster.
4-
author: lb4368
5-
ms.author: lborgmeyer
4+
author: bartpinto
5+
ms.author: bpinto
66
ms.service: azure-operator-nexus
77
ms.topic: how-to
88
ms.date: 07/21/2025
@@ -20,7 +20,7 @@ ms.custom: template-how-to, devx-track-arm-template
2020
"environment": {
2121
"type": "string",
2222
"metadata": {
23-
"description": "Name of the environment"
23+
"description": "Name of the Environment"
2424
}
2525
},
2626
"name": {
@@ -45,7 +45,31 @@ ms.custom: template-how-to, devx-track-arm-template
4545
"managedResourceGroupName": {
4646
"type": "string",
4747
"metadata": {
48-
"description": "Specify a Managed Resource Group for the Resource."
48+
"description": "Managed Resource Group for the Resource."
49+
}
50+
},
51+
"assignedIdentity": {
52+
"type": "string",
53+
"metadata": {
54+
"description": "Managed identity resource ID for the Cluster."
55+
}
56+
},
57+
"analyticsWorkspaceId": {
58+
"type": "string",
59+
"metadata": {
60+
"description": "Log Analytics Workspace and Managed Identity resource IDs for the Cluster."
61+
}
62+
},
63+
"containerUrl": {
64+
"type": "string",
65+
"metadata": {
66+
"description": "Storage Account URL for Cluster command output."
67+
}
68+
},
69+
"vaultUri": {
70+
"type": "string",
71+
"metadata": {
72+
"description": "KeyVault Uri for Cluster"
4973
}
5074
},
5175
"networkFabricId": {
@@ -57,7 +81,7 @@ ms.custom: template-how-to, devx-track-arm-template
5781
"clusterType": {
5882
"type": "string",
5983
"metadata": {
60-
"description": "The type of the cluster, whether single or multi-rack"
84+
"description": "The type of the Cluster, single or multi-rack"
6185
},
6286
"allowedValues": [
6387
"SingleRack",
@@ -67,7 +91,7 @@ ms.custom: template-how-to, devx-track-arm-template
6791
"clusterVersion": {
6892
"type": "string",
6993
"metadata": {
70-
"description": "The version of the cluster to install"
94+
"description": "The version of the Cluster to install"
7195
}
7296
},
7397
"clusterLocation": {
@@ -79,49 +103,20 @@ ms.custom: template-how-to, devx-track-arm-template
79103
"customLocation": {
80104
"type": "string",
81105
"metadata": {
82-
"description": "The custom location of the cluster manager"
106+
"description": "The Custom Location of the Cluster Manager"
83107
}
84108
},
85109
"aggregatorOrSingleRack": {
86110
"type": "object",
87111
"metadata": {
88-
"description": "Aggregator rack or single rack definition"
112+
"description": "Aggregator Rack or single Rack definition"
89113
}
90114
},
91115
"computeRacks": {
92116
"type": "array",
93117
"metadata": {
94118
"description": "Compute Rack definitions"
95119
}
96-
"secretArchiveSettings": {
97-
"type": "secureobject",
98-
"metadata": {
99-
"description": "SecretArchiveSettings supports the key vault URI along with the managed identity to be used for accessing the key vault"
100-
},
101-
},
102-
"analyticsWorkspaceName": {
103-
"type": "string",
104-
"metadata": {
105-
"description": "The name of the analytics workspace to create for the cluster"
106-
}
107-
},
108-
"analyticsOutputSettings": {
109-
"type": "object",
110-
"metadata": {
111-
"description": "The resource ID of the analytics workspace to create for the cluster"
112-
}
113-
},
114-
"commandOutputSettings": {
115-
"type": "object",
116-
"metadata": {
117-
"description": "commandOutputSettings supports the Storage Account URI along with the managed identity to be used for accessing the Storage Account"
118-
}
119-
},
120-
"assignedIdentities": {
121-
"type": "object",
122-
"metadata": {
123-
"description": "The assigned identities for the cluster"
124-
}
125120
}
126121
},
127122
"variables": {},
@@ -162,6 +157,27 @@ ms.custom: template-how-to, devx-track-arm-template
162157
"description": "Location of Cluster Resource"
163158
}
164159
},
160+
"assignedIdentity": {
161+
"type": "string",
162+
"metadata": {
163+
"description": "Managed identity resource ID for the Cluster."
164+
}
165+
},
166+
"analyticsWorkspaceId": {
167+
"type": "string",
168+
"metadata": {
169+
"description": "Log Analytics Workspace and Managed Identity resource IDs for the Cluster."
170+
}
171+
},
172+
"analyticsOutputSettings": {
173+
"type": "object"
174+
},
175+
"secretArchiveSettings": {
176+
"type": "object"
177+
},
178+
"commandOutputSettings": {
179+
"type": "object"
180+
},
165181
"resourceGroupName": {
166182
"type": "string"
167183
},
@@ -174,7 +190,7 @@ ms.custom: template-how-to, devx-track-arm-template
174190
"clusterType": {
175191
"type": "string",
176192
"metadata": {
177-
"description": "The type of the cluster, whether single or multi-rack"
193+
"description": "The type of the Cluster, single or multi-rack"
178194
},
179195
"allowedValues": [
180196
"SingleRack",
@@ -196,100 +212,137 @@ ms.custom: template-how-to, devx-track-arm-template
196212
"customLocation": {
197213
"type": "string",
198214
"metadata": {
199-
"description": "The custom location of the cluster manager"
215+
"description": "The Custom Location of the Cluster Manager"
200216
}
201217
},
202218
"aggregatorOrSingleRack": {
203-
"type": "secureobject",
219+
"type": "object",
204220
"metadata": {
205-
"description": "Aggregator rack or single rack definition"
221+
"description": "Aggregator Rack or single Rack definition"
206222
}
207223
},
208224
"computeRacks": {
209225
"type": "array",
210226
"metadata": {
211-
"description": "Compute rack definitions"
227+
"description": "Compute Rack definitions"
212228
}
213229
},
214230
"managedResourceGroupConfiguration": {
215231
"type": "object"
216-
},
217-
"secretArchiveSettings": {
218-
"type": "object",
219-
"metadata": {
220-
"description": "SecretArchiveSettings supports the key vault URI along with the managed identity to be used for accessing the key vault"
221-
}
222-
},
223-
"analyticsOutputSettings": {
224-
"type": "object",
225-
"metadata": {
226-
"description": "The resource ID of the analytics workspace to create for the cluster"
227-
}
228-
},
229-
"commandOutputSettings": {
230-
"type": "object",
231-
"metadata": {
232-
"description": "commandOutputSettings supports the Storage Account URI along with the managed identity to be used for accessing the Storage Account"
233-
}
234-
},
235-
"assignedIdentities": {
236-
"type": "object",
237-
"metadata": {
238-
"description": "The assigned identities for the cluster"
239-
}
240232
}
241233
},
242234
"variables": {},
243235
"resources": [
244236
{
245-
"type": "Microsoft.OperationalInsights/workspaces",
246-
"apiVersion": "2021-12-01-preview",
247-
"name": "[parameters('analyticsWorkspaceName')]",
248-
"location": "[parameters('location')]",
249-
"properties": {
250-
"sku": {
251-
"name": "pergb2018"
252-
},
253-
"retentionInDays": 120,
254-
"features": {
255-
"enableLogAccessUsingOnlyResourcePermissions": true
256-
}
257-
}
258-
},
259-
{
260-
"dependsOn": [
261-
"[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('analyticsWorkspaceName'))]"
262-
],
263237
"type": "Microsoft.NetworkCloud/clusters",
264238
"apiVersion": "2025-02-01",
265239
"name": "[parameters('name')]",
266240
"location": "[parameters('location')]",
267241
"tags": {},
242+
"identity": {
243+
"type": "UserAssigned",
244+
"userAssignedIdentities": {
245+
"[parameters('assignedIdentity')]": {}
246+
}
247+
},
268248
"extendedLocation": {
269249
"name": "[parameters('customLocation')]",
270250
"type": "CustomLocation"
271251
},
272-
"identity": "[parameters('assignedIdentities')]",
273252
"properties": {
274253
"networkFabricId": "[parameters('networkFabricId')]",
275254
"clusterType": "[parameters('clusterType')]",
276255
"clusterVersion": "[parameters('clusterVersion')]",
277256
"clusterLocation": "[parameters('clusterLocation')]",
257+
"analyticsWorkspaceId": "[parameters('analyticsWorkspaceId')]",
278258
"aggregatorOrSingleRackDefinition": "[parameters('aggregatorOrSingleRack')]",
279259
"computeRackDefinitions": "[parameters('computeRacks')]",
280260
"managedResourceGroupConfiguration": "[parameters('managedResourceGroupConfiguration')]",
281-
"analyticsWorkspaceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('analyticsWorkspaceName'))]",
282261
"analyticsOutputSettings": "[parameters('analyticsOutputSettings')]",
283262
"secretArchiveSettings": "[parameters('secretArchiveSettings')]",
284263
"commandOutputSettings": "[parameters('commandOutputSettings')]"
285264
}
286265
}
287266
],
288267
"outputs": {}
268+
},
269+
"parameters": {
270+
"environment": {
271+
"value": "[parameters('environment')]"
272+
},
273+
"name": {
274+
"value": "[parameters('name')]"
275+
},
276+
"location": {
277+
"value": "[parameters('location')]"
278+
},
279+
"resourceGroupName": {
280+
"value": "[parameters('resourceGroupName')]"
281+
},
282+
"managedResourceGroupConfiguration": {
283+
"value": {
284+
"location": "[parameters('location')]",
285+
"name": "[parameters('managedResourceGroupName')]"
286+
}
287+
},
288+
"assignedIdentity": {
289+
"value": "[parameters('assignedIdentity')]"
290+
},
291+
"analyticsWorkspaceId": {
292+
"value": "[parameters('analyticsWorkspaceId')]"
293+
},
294+
"networkFabricId": {
295+
"value": "[parameters('networkFabricId')]"
296+
},
297+
"clusterType": {
298+
"value": "[parameters('clusterType')]"
299+
},
300+
"clusterVersion": {
301+
"value": "[parameters('clusterVersion')]"
302+
},
303+
"clusterLocation": {
304+
"value": "[parameters('clusterLocation')]"
305+
},
306+
"customLocation": {
307+
"value": "[parameters('customLocation')]"
308+
},
309+
"aggregatorOrSingleRack": {
310+
"value": "[parameters('aggregatorOrSingleRack')]"
311+
},
312+
"analyticsOutputSettings": {
313+
"value": {
314+
"analyticsWorkspaceId": "[parameters('analyticsWorkspaceId')]",
315+
"associatedIdentity": {
316+
"identityType": "UserAssignedIdentity",
317+
"userAssignedIdentityResourceId": "[parameters('assignedIdentity')]"
318+
}
319+
}
320+
},
321+
"commandOutputSettings": {
322+
"value": {
323+
"containerUrl": "[parameters('containerUrl')]",
324+
"associatedIdentity": {
325+
"identityType": "UserAssignedIdentity",
326+
"userAssignedIdentityResourceId": "[parameters('assignedIdentity')]"
327+
}
328+
}
329+
},
330+
"secretArchiveSettings": {
331+
"value": {
332+
"vaultUri": "[parameters('vaultUri')]",
333+
"associatedIdentity": {
334+
"identityType": "UserAssignedIdentity",
335+
"userAssignedIdentityResourceId": "[parameters('assignedIdentity')]"
336+
}
337+
}
338+
},
339+
"computeRacks": {
340+
"value": "[parameters('computeRacks')]"
341+
}
289342
}
290343
}
291344
}
292-
},
345+
],
293346
"outputs": {}
294347
}
295348
```

0 commit comments

Comments
 (0)