Skip to content

Commit 38b4119

Browse files
Merge pull request #279462 from Blackmist/identity-update
adding to support shared key disable scenarios
2 parents 5a8f267 + ff4171a commit 38b4119

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

articles/machine-learning/how-to-identity-based-service-authentication.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,28 @@ Not supported currently.
169169
To delete one or more existing UAIs, you can put the UAI IDs which needs to be preserved under the section user_assigned_identities, the rest UAI IDs would be deleted.<br>
170170
To update identity type from SAI to UAI|SAI, you can change type from "user_assigned" to "system_assigned, user_assigned".
171171

172+
### Add a user-assigned managed identity to a workspace in addition to a system-assigned identity
173+
174+
In some scenarios, you may need to use a user-assigned managed identity in addition to the default system-assigned workspace identity. To add a user-assigned managed identity, without changing the existing workspace identity, use the following steps:
175+
176+
1. [Create a user-assigned managed identity](/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities). Save the ID for the managed identity that you create.
177+
1. To attach the managed identity to your workspace, you need a YAML file that specifies the identity. The following is an example of the YAML file contents. Replace the `<TENANT_ID>`, `<RESOURCE_GROUP>`, and `<USER_MANAGED_ID>` with your values.
178+
179+
```yml
180+
identity:
181+
type: system_assigned,user_assigned
182+
tenant_id: <TENANT_ID>
183+
user_assigned_identities:
184+
'/subscriptions/<SUBSCRIPTION_ID/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<USER_MANAGED_ID>':
185+
{}
186+
```
187+
188+
1. Use the Azure CLI `az ml workspace update` command to update your workspace. Specify the YAML file from the previous step using the `--file` parameter. The following example shows what this command looks like:
189+
190+
```azurecli
191+
az ml workspace update --resource-group <RESOURCE_GROUP> --name <WORKSPACE_NAME> --file <YAML_FILE_NAME>.yaml
192+
```
193+
172194
### Compute cluster
173195

174196
> [!NOTE]

0 commit comments

Comments
 (0)