Skip to content

Commit 558485f

Browse files
authored
Merge pull request #123675 from J-Silvestre/patch-7
Update how-to-identity-based-service-authentication.md
2 parents 31d0e2e + 673607d commit 558485f

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,9 @@ When you disable the admin user for ACR, Azure Machine Learning uses a managed i
463463

464464
### Bring your own ACR
465465

466-
If ACR admin user is disallowed by subscription policy, you should first create ACR without admin user, and then associate it with the workspace. Also, if you have existing ACR with admin user disabled, you can attach it to the workspace.
467-
466+
If ACR admin user is disallowed by subscription policy, you should first create ACR without admin user, and then associate it with the workspace.
468467
[Create ACR from Azure CLI](../container-registry/container-registry-get-started-azure-cli.md) without setting ```--admin-enabled``` argument, or from Azure portal without enabling admin user. Then, when creating Azure Machine Learning workspace, specify the Azure resource ID of the ACR. The following example demonstrates creating a new Azure Machine Learning workspace that uses an existing ACR:
469468

470-
> [!TIP]
471-
> To get the value for the `--container-registry` parameter, use the [az acr show](/cli/azure/acr#az-acr-show) command to show information for your ACR. The `id` field contains the resource ID for your ACR.
472-
473469
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
474470

475471
```azurecli-interactive
@@ -479,6 +475,20 @@ az ml workspace create -w <workspace name> \
479475
--container-registry /subscriptions/<subscription id>/resourceGroups/<acr resource group>/providers/Microsoft.ContainerRegistry/registries/<acr name>
480476
```
481477

478+
> [!TIP]
479+
> To get the value for the `--container-registry` parameter, use the [az acr show](/cli/azure/acr#az-acr-show) command to show information for your ACR. The `id` field contains the resource ID for your ACR.
480+
481+
Also, if you already have an existing ACR with admin user disabled, you can attach it to the workspace by updating it. The following example demonstrates updating an Azure Machine Learning workspace to use an existing ACR:
482+
483+
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
484+
485+
```azurecli-interactive
486+
az ml workspace update --update-dependent-resources \
487+
--name <workspace name> \
488+
--resource-group <workspace resource group> \
489+
--container-registry /subscriptions/<subscription id>/resourceGroups/<acr resource group>/providers/Microsoft.ContainerRegistry/registries/<acr name>
490+
```
491+
482492
### Create compute with managed identity to access Docker images for training
483493

484494
To access the workspace ACR, create machine learning compute cluster with system-assigned managed identity enabled. You can enable the identity from Azure portal or Studio when creating compute, or from Azure CLI using the below. For more information, see [using managed identity with compute clusters](how-to-create-attach-compute-cluster.md#set-up-managed-identity).

0 commit comments

Comments
 (0)