Skip to content

Commit 0bf656b

Browse files
authored
Merge pull request #123836 from J-Silvestre/patch-4
Update how-to-identity-based-service-authentication.md
2 parents 421607e + 88090af commit 0bf656b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,10 @@ When you disable the admin user for ACR, Azure Machine Learning uses a managed i
444444
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
445445

446446
```azurecli-interactive
447-
az ml workspace show -w <my workspace> \
448-
-g <my resource group>
449-
--query containerRegistry
447+
az ml workspace show --name <my workspace name> \
448+
--resource-group <my resource group> \
449+
--subscription <my subscription id> \
450+
--query container_registry
450451
```
451452

452453
This command returns a value similar to the following text. You only want the last portion of the text, which is the ACR instance name:
@@ -469,7 +470,7 @@ If ACR admin user is disallowed by subscription policy, you should first create
469470
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
470471

471472
```azurecli-interactive
472-
az ml workspace create -w <workspace name> \
473+
az ml workspace create -n <workspace name> \
473474
-g <workspace resource group> \
474475
-l <region> \
475476
--container-registry /subscriptions/<subscription id>/resourceGroups/<acr resource group>/providers/Microsoft.ContainerRegistry/registries/<acr name>
@@ -561,7 +562,7 @@ Create machine learning compute cluster with system-assigned managed identity en
561562
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
562563

563564
```azurecli-interactive
564-
az ml compute show --name <cluster name> -w <workspace> -g <resource group>
565+
az ml compute show --name <cluster name> -n <workspace> -g <resource group>
565566
```
566567

567568
Optionally, you can update the compute cluster to assign a user-assigned managed identity:
@@ -608,7 +609,7 @@ In this scenario, Azure Machine Learning service builds the training or inferenc
608609
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
609610

610611
```azurecli-interactive
611-
az ml workspace show -w <workspace name> -g <resource group> --query identityPrincipalId
612+
az ml workspace show -n <workspace name> -g <resource group> --query identityPrincipalId
612613
```
613614

614615
1. Grant the Managed Identity Operator role:
@@ -628,7 +629,7 @@ In this scenario, Azure Machine Learning service builds the training or inferenc
628629
The following command demonstrates how to use the YAML file to create a connection with your workspace. Replace `<yaml file>`, `<workspace name>`, and `<resource group>` with the values for your configuration:
629630

630631
```azurecli-interactive
631-
az ml connection create --file <yml file> --resource-group <resource group> --workspace-name <workspace>
632+
az ml connection create --file <yml file> --resource-group <resource group> --name <workspace>
632633
```
633634

634635
1. Once the configuration is complete, you can use the base images from private ACR when building environments for training or inference. The following code snippet demonstrates how to specify the base image ACR and image name in an environment definition:

0 commit comments

Comments
 (0)