page_type | languages | products | description | urlFragment | ||||
---|---|---|---|---|---|---|---|---|
sample |
|
|
This repo contains sample code demonstrating the backup/restore and recoverable deletion functionality of Azure Key Vault using the Azure .NET SDK. |
net-sdk-samples |
To complete this tutorial:
If you don't have an Azure subscription, create a free account before you begin.
- Go to the Azure Portal and log in using your Azure account.
- Search for and select Azure Active Directory > Manage > App registrations.
- Select New registration.
- Enter a name for your App registrations, then click Register.
- Under Overview select Application (client) ID, Directory (tenant) ID, and Object ID copy to text editor for later use.
- Under Manage > Certificates & secrets > New client secret, filter Description and click Add.
- Copy preview created secret value to text editor for later use.
First, clone the repository on your machine:
git clone https://github.com/Azure-Samples/key-vault-dotnet-recovery.git
Then, switch to the project folder to edit the app.config file, specifying the required parameters.
cd key-vault-dotnet-recovery
Finally, run the application with the dotnet run
command.
dotnet run
- Back up and restore Key Vault entities.
- Enable soft delete.
- Delete, recover and purge a vault.
- Delete, recover and purge vault entities.
The following samples are also related:
The Azure Key Vault documentation includes a rich set of tutorials and conceptual articles, which serve as a good complement to the samples.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.