155k views
4 votes
Execute the Azure CLI command to show deleted keys in Key Vault.

1 Answer

0 votes

Final answer:

To view deleted keys in an Azure Key Vault using the Azure CLI, use the command 'az keyvault key list-deleted --vault-name YourKeyVaultName', replacing 'YourKeyVaultName' with the name of your own Key Vault.

Step-by-step explanation:

To show deleted keys in an Azure Key Vault using the Azure Command Line Interface (CLI), you would execute the following command:

az keyvault key list-deleted --vault-name YourKeyVaultName

This CLI command lists all keys that have been deleted from a specified Key Vault, where YourKeyVaultName is the name of your Azure Key Vault. The deleted keys can still be recovered or purged completely depending on the soft-delete setting and the retention period.

User Andy Refuerzo
by
7.8k points