You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| TAG_VALUE2 | Optional tag2 value to pass to Cluster Create |
112
110
113
111
112
+
## Cluster Identity
113
+
114
+
Starting with the 2024-06-01-preview API version, a customer can assign managed identity to a Cluster. Both System-assigned and User-Assigned managed identities are supported.
115
+
116
+
Managed Identity can be assigned to the Cluster during creation or update operations by providing the following parameters:
117
+
118
+
-**--mi-system-assigned** - Enable System-assigned managed identity. Once added, the Identity can only be removed via the API call at this time.
119
+
-**--mi-user-assigned** - Space-separated resource IDs of the User-assigned managed identities to be added. Once added, the Identity can only be removed via the API call at this time.
114
120
115
121
### Create the Cluster using Azure Resource Manager template editor
116
122
@@ -298,9 +304,75 @@ Cluster create Logs can be viewed in the following locations:
Cluster managed identities can be assigned via CLI. The unassignment of the identities can be done via API calls.
311
+
Note, `<APIVersion>` is the API version 2024-06-01-preview or newer.
312
+
313
+
- To remove all managed identities, execute:
314
+
315
+
```azurecli
316
+
az rest --method PATCH --url /subscriptions/$SUB_ID/resourceGroups/$CLUSTER_RG/providers/Microsoft.NetworkCloud/clusters/$CLUSTER_NAME?api-version=<APIVersion> --body "{\"identity\":{\"type\":\"None\"}}"
317
+
```
318
+
319
+
- If both User-assigned and System-assigned managed identities were added, the User-assigned can be removed by updating the `type` to `SystemAssigned`:
320
+
321
+
```azurecli
322
+
az rest --method PATCH --url /subscriptions/$SUB_ID/resourceGroups/$CLUSTER_RG/providers/Microsoft.NetworkCloud/clusters/$CLUSTER_NAME?api-version=<APIVersion> --body @~/uai-body.json
323
+
```
324
+
325
+
The request body (uai-body.json) example:
326
+
327
+
```azurecli
328
+
{
329
+
"identity": {
330
+
"type": "SystemAssigned"
331
+
}
332
+
}
333
+
```
334
+
335
+
- If both User-assigned and System-assigned managed identities were added, the System-assigned can be removed by updating the `type` to `UserAssigned`:
336
+
337
+
```azurecli
338
+
az rest --method PATCH --url /subscriptions/$SUB_ID/resourceGroups/$CLUSTER_RG/providers/Microsoft.NetworkCloud/clusters/$CLUSTER_NAME?api-version=<APIVersion> --body @~/uai-body.json
0 commit comments