Skip to content

Commit 228ccd0

Browse files
authored
Update how-to-credential-manager-key-vault.md
Add details about retrieving a principal ID.
1 parent 2da7e64 commit 228ccd0

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

articles/operator-nexus/how-to-credential-manager-key-vault.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,38 @@ az role assignment create --assignee 05cf5e27-931d-47ad-826d-cb9028d8bd7a --role
4949
az role assignment create --assignee 3365d4ea-bb16-4bc9-86dd-f2c8cf6f1f56 --role 44f0a1a8-6fea-4b35-980a-8ff50c487c97 --scope /subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.KeyVault/vaults/<Key Vault Name>
5050
```
5151

52+
## Get the Principal ID for the Managed Identity
53+
54+
Once a managed identity is configured, use the 2024-05-01-preview API to view the Identity data within the cluster manager.
55+
56+
Example:
57+
58+
```console
59+
az networkcloud clustermanager show --ids /subscriptions/<Subscription ID>/resourceGroups/<Cluster Manager Resource Group Name>/providers/Microsoft.NetworkCloud/clusterManagers/<Cluster Manager Name>
60+
```
61+
62+
System-assigned identity example:
63+
```
64+
"identity": {
65+
"principalId": "2cb564c1-b4e5-4c71-bbc1-6ae259aa5f87",
66+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
67+
"type": "SystemAssigned"
68+
},
69+
```
70+
71+
User-assigned identity example:
72+
```
73+
"identity": {
74+
"type": "UserAssigned",
75+
"userAssignedIdentities": {
76+
"/subscriptions/<subscriptionID>/resourcegroups/<resourceGroupName>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<userAssignedIdentityName>": {
77+
"clientId": "e67dd610-99cf-4853-9fa0-d236b214e984",
78+
"principalId": "8e6d23d6-bb6b-4cf3-a00f-4cd640ab1a24"
79+
}
80+
}
81+
},
82+
```
83+
5284
- User associates the Customer Key Vault with the Operator Nexus cluster. The key vault resource ID must be configured in the cluster and enabled to store the secrets of the cluster.
5385

5486
Example:

0 commit comments

Comments
 (0)