Skip to content

Commit 585433b

Browse files
committed
edits/diagram update
1 parent 3b29f81 commit 585433b

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

articles/container-registry/container-registry-repository-scoped-permissions.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Permissions to repositories in Azure Container Registry
33
description: Create a token with permissions scoped to specific repositories in a registry to pull or push images, or perform other actions
44
ms.topic: article
5-
ms.date: 02/10/2020
5+
ms.date: 02/13/2020
66
---
77

88
# Create a token with repository-scoped permissions
@@ -36,12 +36,17 @@ To configure repository-scoped permissions, you create a *token* with an associa
3636
|`content/delete` | Remove data from the repository | Delete a repository or a manifest |
3737
|`content/read` | Read data from the repository | Pull an artifact |
3838
|`content/write` | Write data to the repository | Use with `content/read` to push an artifact |
39-
|`metadata/read` | Read metadata from the repository | List tags or show manifest metadata |
40-
|`metadata/write` | Write metadata to the repository | Update manifest attributes |
39+
|`metadata/read` | Read metadata from the repository | List tags or manifests |
40+
|`metadata/write` | Write metadata to the repository | Enable or disable read, write, or delete operations |
4141

42-
* A **scope map** groups the repository permissions you apply to a token, and can reapply to other tokens. A scope map helps you configure multiple tokens with identical permissions to a set of repositories.
42+
* A **scope map** groups the repository permissions you apply to a token, and can reapply to other tokens. Every token is associated with a single scope map.
4343

44-
If you update a scope map you created, the permissions of the associated tokens are updated. Azure Container Registry also provides several system-defined scope maps, with fixed permissions across all repositories.
44+
With a scope map:
45+
46+
* Configure multiple tokens with identical permissions to a set of repositories
47+
* Update token permissions when you add or remove repository actions in the scope map, or apply a different scope map
48+
49+
Azure Container Registry also provides several system-defined scope maps you can apply, with fixed permissions across all repositories.
4550

4651
The following image shows the relationship between tokens and scope maps.
4752

@@ -184,7 +189,7 @@ For the following examples, pull the `hello-world` and `alpine` images from Dock
184189
docker pull hello-world
185190
docker pull alpine
186191
docker tag hello-world myregistry.azurecr.io/samples/hello-world:v1
187-
docker tag hello-world myregistry.azurecr.io/samples/alpine:v1
192+
docker tag hello-world myregistry.azurecr.io/samples/"alpine:v1
188193
```
189194
190195
### Authenticate using token
@@ -381,7 +386,7 @@ In the portal, on the **Tokens (preview)** screen, select the token, and under *
381386
> [!TIP]
382387
> After updating a token with a new scope map, you might want to generate new token passwords. Use the [az acr token credential generate][az-acr-token-credential-generate] command or regenerate a token password in the Azure portal.
383388
384-
### Disable or delete token
389+
## Disable or delete token
385390
386391
You might need to temporarily disable use of the token credentials for a user or service.
387392
@@ -394,7 +399,13 @@ az acr token update --name MyToken --registry myregistry \
394399
395400
In the portal, select the token in the **Tokens (Preview)** screen, and select **Disabled** under **Status**.
396401
397-
To delete a token to permanently invalidate, access by anyone using its credentials, run the [az acr token delete][az-acr-token-delete] command. In the portal, select the token in the **Tokens (Preview)** screen, and select **Discard**.
402+
To delete a token to permanently invalidate access by anyone using its credentials, run the [az acr token delete][az-acr-token-delete] command.
403+
404+
```azurecli
405+
az acr token delete --name MyToken --registry myregistry
406+
```
407+
408+
In the portal, select the token in the **Tokens (Preview)** screen, and select **Discard**.
398409
399410
## Next steps
400411
1.36 KB
Loading

0 commit comments

Comments
 (0)