Revert Secrets

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

I accidentally deleted Secret. How to revert it.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,382 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 33,706 Reputation points Microsoft Employee
    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