Disable soft delete on Azure key vault

HASSAN BIN NASIR DAR 306 Reputation points
2021-08-26T12:30:04.783+00:00

Hi,

1- How can we disable SOFT DELETE on key vault which is enabled automatically?

2- How can we change the retention period on azure key vault?

Thanks

Regards,

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,293 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 36,851 Reputation points Microsoft Employee
    2021-08-26T22:45:45.137+00:00

    Hi @HASSAN BIN NASIR DAR ,

    You cannot disable the soft-delete, but you can use can use Azure CLI (or Powershell) to permanently delete the Key Vault. az keyvault purge --subscription {SUBSCRIPTION ID} -n {VAULT NAME}

    https://learn.microsoft.com/en-us/azure/key-vault/general/key-vault-recovery?tabs=azure-cli#key-vault-cli

    Soft delete is implemented as a one-way operation and cannot be changed back once enabled. (This is mentioned in the enableSoftDelete property definition.) If you can share more details on why disabling soft-delete would be useful for you, and the specifics of your scenario, I'd be interested in starting a discussion with the engineering team for you.

    During the creation of the Key Vault, you can set the retention period interval to a value from 7 to 90 days. You can't change that retention period after soft delete has been turned on though.

    If you share the details of your use case and I will gladly share this feedback with the engineering team and start a conversation around this.

    Thanks!

    Marilee

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.