Skip to content

Commit f842471

Browse files
committed
update tabs
1 parent a44791f commit f842471

File tree

1 file changed

+20
-80
lines changed

1 file changed

+20
-80
lines changed

articles/operator-nexus/howto-cluster-manager.md

Lines changed: 20 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Parameters:
123123
- `-ManagedResourceGroupConfigurationName` - The name for the managed resource group. If not specified, the unique name is automatically generated.
124124
- `-Tag` - Hashtable of Resource tags.
125125

126-
### Create a Cluster Manager via ARM Template
126+
### [ARM Template](#tab/template)
127127

128128
To create a Cluster Manager via ARM Template, you need to provide a template file (clusterManager.jsonc) and a parameter file (clusterManager.parameters.jsonc).
129129

@@ -196,6 +196,10 @@ This command shows the properties of the specified Cluster Manager in Json forma
196196
Get-AzNetworkCloudClusterManager -Name "$CLUSTER_MANAGER_NAME" -ResourceGroupName "$CLUSTER_MANAGER_RG" -SubscriptionId "$SUB_ID" | ConvertTo-Json
197197
```
198198

199+
### [ARM Template](#tab/template)
200+
201+
Use one of the existing interfaces, Portal, CLI, or PowerShell, to delete the Cluster Manager.
202+
199203
---
200204

201205
## Update Cluster Manager
@@ -214,22 +218,7 @@ az networkcloud clustermanager update \
214218
--subscription "$SUB_ID"
215219
```
216220

217-
### [Azure PowerShell](#tab/azure-powershell)
218-
219-
```azurepowershell-interactive
220-
$tagHash = @{
221-
tag1 = "true"
222-
tag2 = "false"
223-
}
224-
225-
Update-AzNetworkCloudClusterManager -Name "$CLUSTER_MANAGER_NAME -ResourceGroupName $CLUSTER_MANAGER_RG -SubscriptionId $SUB_ID -Tag $tagHash
226-
```
227-
228-
## Update Cluster Manager Identities
229-
230-
Cluster Manager identity can be managed via CLI using `az networkcloud clustermanager identity` commands.
231-
232-
### [Azure CLI](#tab/azure-cli)
221+
Cluster Manager identity can be managed via CLI using `az networkcloud clustermanager identity` sub commands.
233222

234223
This command shows the currently assigned identities:
235224

@@ -282,71 +271,18 @@ az networkcloud clustermanager identity remove \
282271

283272
### [Azure PowerShell](#tab/azure-powershell)
284273

285-
Currently not supported.
274+
```azurepowershell-interactive
275+
$tagHash = @{
276+
tag1 = "true"
277+
tag2 = "false"
278+
}
286279
287-
---
280+
Update-AzNetworkCloudClusterManager -Name "$CLUSTER_MANAGER_NAME -ResourceGroupName $CLUSTER_MANAGER_RG -SubscriptionId $SUB_ID -Tag $tagHash
281+
```
288282

289-
Alternatively, you can update Cluster Manager Identities Azure APIs.
290-
291-
- To remove all managed identities, execute:
292-
293-
```azurecli
294-
az rest --method PATCH --url /subscriptions/$SUB_ID/resourceGroups/$CLUSTER_MANAGER_RG/providers/Microsoft.NetworkCloud/clusterManagers/$CLUSTER_MANAGER_NAME?api-version=<APIVersion> --body "{\"identity\":{\"type\":\"None\"}}"
295-
```
296-
297-
- If both User-assigned and System-assigned managed identities were added, the User-assigned can be removed by updating the `type` to `SystemAssigned`:
298-
299-
```azurecli
300-
az rest --method PATCH --url /subscriptions/$SUB_ID/resourceGroups/$CLUSTER_MANAGER_RG/providers/Microsoft.NetworkCloud/clusterManagers/$CLUSTER_MANAGER_NAME?api-version=<APIVersion> --body @~/uai-body.json
301-
```
302-
303-
The request body (uai-body.json) example:
304-
305-
```azurecli
306-
{
307-
"identity": {
308-
"type": "SystemAssigned"
309-
}
310-
}
311-
```
312-
313-
- If both User-assigned and System-assigned managed identities were added, the System-assigned can be removed by updating the `type` to `UserAssigned`:
314-
315-
```azurecli
316-
az rest --method PATCH --url /subscriptions/$SUB_ID/resourceGroups/$CLUSTER_MANAGER_RG/providers/Microsoft.NetworkCloud/clusterManagers/$CLUSTER_MANAGER_NAME?api-version=<APIVersion> --body @~/uai-body.json
317-
```
318-
319-
The request body (uai-body.json) example:
320-
321-
```azurecli
322-
{
323-
"identity": {
324-
"type": "UserAssigned",
325-
"userAssignedIdentities": {
326-
"/subscriptions/$SUB_ID/resourceGroups/$UAI_RESOURCE_GROUP/providers/Microsoft.ManagedIdentity/userAssignedIdentities/$UAI_NAME": {}
327-
}
328-
}
329-
}
330-
```
331-
332-
- If multiple User-assigned managed identities were added, one of them can be removed by executing:
333-
334-
```azurecli
335-
az rest --method PATCH --url /subscriptions/$SUB_ID/resourceGroups/$CLUSTER_MANAGER_RG/providers/Microsoft.NetworkCloud/clusterManagers/$CLUSTER_MANAGER_NAME?api-version=<APIVersion> --body @~/uai-body.json
336-
```
337-
338-
The request body (uai-body.json) example:
339-
340-
```azurecli
341-
{
342-
"identity": {
343-
"type": "UserAssigned",
344-
"userAssignedIdentities": {
345-
"/subscriptions/$SUB_ID/resourceGroups/$UAI_RESOURCE_GROUP/providers/Microsoft.ManagedIdentity/userAssignedIdentities/$UAI_NAME": null
346-
}
347-
}
348-
}
349-
```
283+
### [ARM Template](#tab/template)
284+
285+
The template used for creation can also be used to update the Cluster Manager.
350286

351287
---
352288

@@ -377,6 +313,10 @@ $tagHash = @{
377313
Remove-AzNetworkCloudClusterManager -Name "$CLUSTER_MANAGER_NAME -ResourceGroupName $CLUSTER_MANAGER_RG -SubscriptionId $SUB_ID
378314
```
379315

316+
### [ARM Template](#tab/template)
317+
318+
Use one of the existing interfaces, Portal, CLI, or PowerShell, to delete the Cluster Manager.
319+
380320
---
381321

382322
## Next steps

0 commit comments

Comments
 (0)