|
| 1 | +--- |
| 2 | +title: Recover Azure App Configuration stores (Preview) |
| 3 | +description: Recover/Purge Azure App Configuration soft deleted Stores |
| 4 | +author: muksvso |
| 5 | +ms.author: mubatra |
| 6 | +ms.service: azure-app-configuration |
| 7 | +ms.custom: devx-track-dotnet |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 03/01/2022 |
| 10 | +--- |
| 11 | + |
| 12 | +# Recover Azure App Configuration stores (Preview) |
| 13 | + |
| 14 | +This article covers the soft delete feature of Azure App Configuration stores. You'll learn about how to set retention policy, enable purge protection, recover and purge a soft-deleted store. |
| 15 | + |
| 16 | +To learn more about the concept of soft delete feature, see [Soft-Delete in Azure App Configuration](./concept-soft-delete.md). |
| 17 | + |
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +* An Azure subscription - [create one for free](https://azure.microsoft.com/free/dotnet) |
| 21 | + |
| 22 | +* Refer to the [Soft-Delete in Azure App Configuration](./concept-soft-delete.md#permissions-to-recover-or-purge-store) for permissions requirements. |
| 23 | + |
| 24 | +## Set retention policy and enable purge protection at store creation |
| 25 | + |
| 26 | +To create a new App Configuration store in the Azure portal, follow these steps: |
| 27 | + |
| 28 | +1. Sign in to the [Azure portal](https://portal.azure.com). In the upper-left corner of the home page, select **Create a resource**. In the **Search the Marketplace** box, type *App Configuration* and press Enter. |
| 29 | + |
| 30 | + :::image type="content" source="./media/how-to-soft-delete-app-config-3.png" alt-text="In MarketPlace Search results, App Configuration is highlighted"::: |
| 31 | + |
| 32 | +1. Select **App Configuration** from the search results, and then select **Create**. |
| 33 | + |
| 34 | + :::image type="content" source="./media/how-to-soft-delete-app-config-7.png" alt-text="In Snapshot, Create option is highlighted"::: |
| 35 | + |
| 36 | +1. On the **Create App Configuration** pane, enter the following settings: |
| 37 | + |
| 38 | + | Setting | Suggested value | Description | |
| 39 | + |---|---|---| |
| 40 | + | **Subscription** | Your subscription | Select the Azure subscription for your store | |
| 41 | + | **Resource group** | Your resource group | Select the Azure resource group for your store | |
| 42 | + | **Resource name** | Globally unique name | Enter a unique resource name to use for the App Configuration store. This name can't be the same name as the previous configuration store. | |
| 43 | + | **Location** | Your desired Location | Select the region you want to create your configuration store in. | |
| 44 | + | **Pricing tier** | *Standard* | Select the standard pricing tier. For more information, see the [App Configuration pricing page](https://azure.microsoft.com/pricing/details/app-configuration). | |
| 45 | + | **Days to retain deleted stores** | Retention period for soft deleted stores | Select the number of days for which you would want the soft deleted stores and their content to be retained. | |
| 46 | + | **Enable Purge protection** | Purge protection status | Check to enable Purge protection on the store so no one can purge it before the retention period expires. | |
| 47 | + |
| 48 | + :::image type="content" source="./media/how-to-soft-delete-app-config-6.png" alt-text="In Create, Recovery options are highlighted"::: |
| 49 | + |
| 50 | +1. Select **Review + create** to validate your settings. |
| 51 | +1. Select **Create**. The deployment might take a few minutes. |
| 52 | + |
| 53 | +## Enable Purge Protection in an existing store |
| 54 | + |
| 55 | +1. Log in to the Azure portal. |
| 56 | +1. Select your standard tier App Configuration store. |
| 57 | +1. Refer to the screenshot below on where to check for the soft delete status of an existing store. |
| 58 | + |
| 59 | + :::image type="content" source="./media/how-to-soft-delete-app-config-1.png" alt-text="In Overview, Soft-delete is highlighted."::: |
| 60 | + |
| 61 | +1. Click on the **Enabled** value of Soft Delete. You'll be redirected to the **properties** of your store. At the bottom of the page, you can review the information related to soft delete. The Retention period is shown as "Days to retain deleted stores". You can't change this value once it's set. The Purge protection check box shows whether purge protection is enabled for this particular store or not. Once enabled, purge protection can't be disabled. |
| 62 | + |
| 63 | + :::image type="content" source="./media/how-to-soft-delete-app-config-2.png" alt-text="In Properties, Soft delete, Days to retain are highlighted."::: |
| 64 | + |
| 65 | +## List, recover, or purge a soft deleted App Configuration store |
| 66 | + |
| 67 | +1. Log in to the Azure portal. |
| 68 | +1. Click on the search bar at the top of the page. |
| 69 | +1. Search for "App Configuration" and click on **App Configuration** under **Services**. Don't click on an individual App Configuration store. |
| 70 | +1. At the top of the screen, click the option to **Manage deleted stores**. A context pane will open on the right side of your screen. |
| 71 | + |
| 72 | + :::image type="content" source="./media/how-to-soft-delete-app-config-4.png" alt-text="On App Configuration stores, the Manage deleted stores option is highlighted."::: |
| 73 | + |
| 74 | +1. Select your subscription from the drop box. If you've deleted one or more App Configuration stores, these stores will appear in the context pane on the right. Click "Load More" at the bottom of the context pane if not all deleted stores are loaded. |
| 75 | +1. Once you find the store that you wish to recover or purge, select the checkbox next to it. You can select multiple stores |
| 76 | +1. Please click **Recover** at the bottom of the context pane to recover the store OR |
| 77 | + click **Purge** option to permanently delete the store. Note you won't be able to purge a store when purge protection is enabled. |
| 78 | + |
| 79 | + :::image type="content" source="./media/how-to-soft-delete-app-config-5.png" alt-text="On Manage deleted stores panel, one store is selected, and the Recover button is highlighted."::: |
| 80 | + |
| 81 | +## Recover an App Configuration store with customer-managed key enabled |
| 82 | + |
| 83 | +When recovering stores that use customer-managed keys, there are extra steps that need to be performed to access the recovered data. This is because the recovered store, will no longer have a managed identity assigned that has access to the customer-managed key. A new managed identity should be assigned to the store and the customer managed key settings should be reconfigured to use the newly assigned identity. When updating the managed key settings to use the newly assigned identity, ensure to continue using the same key from the key vault. For more details on how to use customer-managed keys in App Configuration stores, refer to [Use customer-managed keys to encrypt your App Configuration data](./concept-customer-managed-keys.md). |
| 84 | + |
| 85 | +## Next steps |
| 86 | +> [!div class="nextstepaction"] |
| 87 | +> [Soft-Delete in Azure App Configuration](./concept-soft-delete.md) |
0 commit comments