Skip to content

Commit 94a27d6

Browse files
committed
add UAI command
1 parent f12d2ad commit 94a27d6

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

articles/machine-learning/prompt-flow/how-to-create-manage-runtime.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,27 @@ Automatic is the default option for a runtime. You can start an automatic runtim
6767
- If you choose serverless compute, you can set following settings:
6868
- Customize the VM size that the runtime uses.
6969
- Customize the idle time, which saves code by deleting the runtime automatically if it isn't in use.
70-
- Set the user-assigned managed identity. The automatic runtime uses this identity to pull a base image and install packages. Make sure that the user-assigned managed identity has Azure Container Registry `acrpull` permission. If you don't set this identity, we use the user identity by default. [Learn more about how to create and update user-assigned identities for a workspace](../how-to-identity-based-service-authentication.md#to-create-a-workspace-with-multiple-user-assigned-identities-use-one-of-the-following-methods).
70+
- Set the user-assigned managed identity. The automatic runtime uses this identity to pull a base image, auth with connection and install packages. Make sure that the user-assigned managed identity has Azure Container Registry `acrpull` permission. If you don't set this identity, we use the user identity by default.
7171

72-
:::image type="content" source="./media/how-to-create-manage-runtime/runtime-creation-automatic-settings.png" alt-text="Screenshot of prompt flow with advanced settings using serverless compute for starting an automatic runtime on a flow page." lightbox = "./media/how-to-create-manage-runtime/runtime-creation-automatic-settings.png":::
72+
:::image type="content" source="./media/how-to-create-manage-runtime/runtime-creation-automatic-settings.png" alt-text="Screenshot of prompt flow with advanced settings using serverless compute for starting an automatic runtime on a flow page." lightbox = "./media/how-to-create-manage-runtime/runtime-creation-automatic-settings.png":::
73+
74+
- You can use following CLI command to assign UAI to workspace. [Learn more about how to create and update user-assigned identities for a workspace](../how-to-identity-based-service-authentication.md#to-create-a-workspace-with-multiple-user-assigned-identities-use-one-of-the-following-methods).
75+
76+
77+
```azurecli
78+
az ml workspace update -f workspace_update_with_multiple_UAIs.yml --subscription <subscription ID> --resource-group <resource group name> --name <workspace name>
79+
```
80+
81+
Where the contents of *workspace_update_with_multiple_UAIs.yml* are as follows:
82+
83+
```yaml
84+
identity:
85+
type: system_assigned, user_assigned
86+
user_assigned_identities:
87+
'<UAI resource ID 1>': {}
88+
'<UAI resource ID 2>': {}
89+
primary_user_assigned_identity: <one of the UAI resource IDs in the above list>
90+
```
7391
7492
> [!TIP]
7593
> The following [Azure RBAC role assignments](../../role-based-access-control/role-assignments.md) are required on your user-assigned managed identity for your Azure Machine Learning workspace to access data on the workspace-associated resources.

0 commit comments

Comments
 (0)