Skip to content

Commit 5da7661

Browse files
Merge pull request #284560 from tejaswikolli-web/main
Update tutorial-rotate-revoke-customer-managed-keys.md
2 parents d6e175c + 5a53069 commit 5da7661

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

articles/container-registry/tutorial-rotate-revoke-customer-managed-keys.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,33 @@ If you configure the registry for manual updating for a new key version, run the
4444
> [!TIP]
4545
> When you run `az-acr-encryption-rotate-key`, you can pass either a versioned key ID or an unversioned key ID. If you use an unversioned key ID, the registry is then configured to automatically detect later key version updates.
4646
47-
To update a customer-managed key version manually, you have two options:
47+
To update a customer-managed key version manually, you have three options:
4848

49-
- Rotate the key and use a user-assigned identity.
49+
- Rotate the key and use a client ID of a managed identity.
5050

51-
If you're using the key from a different key vault, verify that `principal-id-user-assigned-identity` has the `get`, `wrap`, and `unwrap` permissions on that key vault.
51+
If you're using the key from a different key vault, verify the `identity` has the `get`, `wrap`, and `unwrap` permissions on that key vault.
5252

5353
```azurecli
5454
az acr encryption rotate-key \
5555
--name <registry-name> \
5656
--key-encryption-key <new-key-id> \
57-
--identity <principal-id-user-assigned-identity>
57+
--identity <client ID of a managed identity>
5858
```
5959

60+
- Rotate the key and use a user-assigned identity.
61+
62+
Before you use the user-assigned identity, verify that the `get`, `wrap`, and `unwrap` permissions are assigned to it.
63+
64+
```azurecli
65+
az acr encryption rotate-key \
66+
--name <registry-name> \
67+
--key-encryption-key <new-key-id> \
68+
--identity <id of user assigned identity>
69+
```
70+
6071
- Rotate the key and use a system-assigned identity.
6172

62-
Before you use the system-assigned identity, verify that the `get`, `wrap`, and `unwrap` permissions are assigned to it.
73+
Before you use the system-assigned identity, verify that the `get`, `wrap`, and `unwrap` permissions are assigned to it.
6374

6475
```azurecli
6576
az acr encryption rotate-key \

0 commit comments

Comments
 (0)