Skip to content

Commit f36a705

Browse files
edits
1 parent e6aeba3 commit f36a705

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/container-registry/tutorial-troubleshoot-customer-managed-keys.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ The identity attached to a registry is set for autorenewal to avoid expiry. If y
5454

5555
You have to reassign the identity back to registry explicitly.
5656

57+
1. Run the [az acr identity assign](/cli/azure/acr/identity/#az-acr-identity-assign) command to reassign the identity manualy.
58+
59+
- For example,
60+
61+
```azurecli-interactive
62+
az acr identity assign -n myRegistry \
63+
--identities "/subscriptions/mysubscription/resourcegroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity"
64+
```
65+
5766
## Accidental deletion of a key vault or key
5867
5968
Deletion of the key vault, or the key, that's used to encrypt a registry with a customer-managed key makes the registry's content inaccessible. If [soft delete](../key-vault/general/soft-delete-overview.md) is enabled in the key vault (the default option), you can recover a deleted vault or key vault object and resume registry operations.

0 commit comments

Comments
 (0)