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.