166k views
4 votes
Run the Azure CLI command to list deleted keys in Key Vault.

User Nanju
by
7.9k points

1 Answer

4 votes

Final answer:

To list deleted keys in an Azure Key Vault, use the 'az keyvault key list-deleted --vault-name ' command, making sure to replace with the name of your Key Vault.

Step-by-step explanation:

The Azure Command-Line Interface (CLI) to list deleted keys in an Azure Key Vault. To perform this task, you would use the az keyvault key list-deleted command. This command provides a list of all keys that have been deleted in a specified Key Vault, which is useful for recovery purposes if you have the soft-delete feature enabled on your Key Vault.

To use this CLI command, you need to specify the name of the Key Vault. Here is the command in its basic form:

az keyvault key list-deleted --vault-name <your-keyvault-name>

Replace <your-keyvault-name> with the actual name of your Key Vault. You may also need to sign in to your Azure account using az login if not already logged in and ensure you have appropriate permissions to perform this action on the Key Vault.

User Vivek MVK
by
8.6k points

Related questions

1 answer
4 votes
155k views
1 answer
3 votes
228k views