Share via

Revert Secrets

Lin Yang 1 Reputation point
2021-07-16T20:48:48.513+00:00

I accidentally deleted Secret. How to revert it.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,396 Reputation points Microsoft Employee Moderator
    2021-07-16T21:30:59.253+00:00

    Are you referring to a Key Vault secret?

    If that is the case you can use the following operation to recover the deleted secret:

    POST {vaultBaseUrl}/deletedsecrets/{secret-name}/recover?api-version=7.2  
    

    https://learn.microsoft.com/en-us/rest/api/keyvault/recover-deleted-secret/recover-deleted-secret

    Was this answer helpful?


Your answer

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