Skip to content

Commit 56fb733

Browse files
authored
Merge pull request #79698 from dlepow/fix
[ACR] Fix variable name
2 parents 1947f79 + ae954b4 commit 56fb733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/container-registry/container-registry-tasks-authentication-managed-identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ principalID=$(az identity show --resource-group myResourceGroup --name myACRTask
268268
Run the following [az keyvault set-policy][az-keyvault-set-policy] command to set an access policy on the key vault. The following example allows the user-assigned identity to get secrets from the key vault. This access is needed later to run a multi-step task successfully.
269269

270270
```azurecli-interactive
271-
az keyvault set-policy --name mykeyvault --resource-group myResourceGroup --object-id $spID --secret-permissions get
271+
az keyvault set-policy --name mykeyvault --resource-group myResourceGroup --object-id $principalID --secret-permissions get
272272
```
273273

274274
### Grant identity Reader access to the resource group for registry

0 commit comments

Comments
 (0)