You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/concept-point-time-snapshot.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Retrieve key-value pairs from a point-in-time
2
+
title: Retrieve key-values from a point-in-time
3
3
titleSuffix: Azure App Configuration
4
4
description: Retrieve old key-value pairs using point-in-time snapshots in Azure App Configuration, which maintains a record of changes to key-values.
5
5
services: azure-app-configuration
@@ -12,45 +12,45 @@ ms.date: 03/14/2022
12
12
13
13
# Point-in-time snapshot
14
14
15
-
Azure App Configuration maintains a record of changes made to key-value pairs. This record provides a timeline of key-value changes. You can reconstruct the history of any key and provide its past value at any moment within the key history period (7 days for Free tier stores, or 30 days for Standard tier stores). Using this feature, you can “time-travel” backward and retrieve an old key-value pair. For example, you can recover configuration settings used before the most recent deployment in order to roll back the application to the previous configuration.
15
+
Azure App Configuration maintains a record of changes made to key-values. This record provides a timeline of key-value changes. You can reconstruct the history of any key and provide its past value at any moment within the key history period (7 days for Free tier stores, or 30 days for Standard tier stores). Using this feature, you can “time-travel” backward and retrieve an old key-value. For example, you can recover configuration settings used before the most recent deployment in order to roll back the application to the previous configuration.
16
16
17
-
## Restore key-value pairs
17
+
## Restore key-values
18
18
19
-
You can use the Azure portal or the Azure CLI to retrieve past key-value pairs.
19
+
You can use the Azure portal or the Azure CLI to retrieve past key-values.
20
20
21
21
### [Portal](#tab/azure-portal)
22
22
23
-
1. Sign in to the [Azure portal](https://portal.azure.com). Select **All resources**, and select the App Configuration store instance where your key-value pairs are stored.
23
+
1. Sign in to the [Azure portal](https://portal.azure.com). Select **All resources**, and select the App Configuration store instance where your key-value are stored.
24
24
25
-
1. In the **Operations** menu, select **Restore**.
25
+
2. In the **Operations** menu, select **Restore**.
26
26
27
27
:::image type="content" source="media/restore-key-value-portal.png" alt-text="Screenshot of the Azure portal, selecting restore":::
28
28
29
-
1. Select **Date: Select date** to select a date and time you want to revert to.
30
-
1. Click outside of the date and time fields or press **Tab** to validate your choice. You can now access all the key-value pairs that existed at your selected date and time, and see how they differ from current keys and values. This step helps you understand what keys and values you're preparing to revert to.
29
+
3. Select **Date: Select date** to select a date and time you want to revert to.
30
+
4. Click outside of the date and time fields or press **Tab** to validate your choice. You can now see which key values have changed between your selected date and time and the current time. This step helps you understand what keys and values you're preparing to revert to.
31
31
32
-
:::image type="content" source="media/restore-key-value-past-values.png" alt-text="Screenshot of the Azure portal with saved key-value pairs":::
32
+
:::image type="content" source="media/restore-key-value-past-values.png" alt-text="Screenshot of the Azure portal with saved key-values":::
33
33
34
-
The portal displays a table of key-value pairs. The first column includes symbols indicating what will happen if you restore the data for the chosen date and time:
35
-
- The red minus sign (–) means that the key-value pair doesn't exist at your selected date and time and will be deleted.
36
-
- The green plus sign (+) means that the key-value pair existed at your selected date and time and will be added.
37
-
- The orange bullet sign (•) means that the key-value pair was modified since your selected date and time. The key will revert to the value it had at the selected date and time.
34
+
The portal displays a table of key-values. The first column includes symbols indicating what will happen if you restore the data for the chosen date and time:
35
+
- The red minus sign (–) means that the key-value didn't exist at your selected date and time and will be deleted.
36
+
- The green plus sign (+) means that the key-value existed at your selected date and time and doesn't exist now. If you revert to selected date and time it will be added back to your configuration.
37
+
- The orange bullet sign (•) means that the key-value was modified since your selected date and time. The key will revert to the value it had at the selected date and time.
38
38
39
-
1. Check a box on a line to display the difference between the current and compared key-value pairs and select it for restoring.
39
+
5. Select the checkbox in the row to select/deselect the key value to take action. When selected it will display the difference for the keyvalue between the current and selected date and time.
40
40
41
-
:::image type="content" source="media/restore-key-value-compare.png" alt-text="Screenshot of the Azure portal with compared keys-value pairs":::
41
+
:::image type="content" source="media/restore-key-value-compare.png" alt-text="Screenshot of the Azure portal with compared keys-values":::
42
42
43
-
In the above example, the preview shows the key TestApp:Settings:BackgroundColor, which currently has a value of #45288E. This value will be modified to #FFF if we go through with restoring the data.
43
+
In the above example, the preview shows the key TestApp:Settings:BackgroundColor, which currently has a value of #FFF. This value will be modified to #45288E if we go through with restoring the data.
44
44
45
-
You can select one or more checkboxes in the table to take action on the key-value pairs of your choice. You can also select all the checkboxes at the same time to revert all keys-value pairs to a date and time in the past.
45
+
You can select one or more checkboxes in the table to take action on the key-value of your choice. You can also use the select-all checkbox at the very top of the list to select/deselect all key-values.
46
46
47
-
1. Select **Restore**.
47
+
6. Select **Restore** to restore the selected key-value(s) to the selected data and time.
48
48
49
49
:::image type="content" source="media/restore-key-value-confirm.png" alt-text="Screenshot of the Azure portal selecting Restore":::
50
50
51
51
### [Azure CLI](#tab/azure-cli)
52
52
53
-
Use the Azure CLI as explained below to retrieve and restore past key-value pairs. If you don't have the Azure CLI installed locally, you can optionally use [Azure Cloud Shell](../cloud-shell/overview.md).
53
+
Use the Azure CLI as explained below to retrieve and restore past key-values. If you don't have the Azure CLI installed locally, you can optionally use [Azure Cloud Shell](../cloud-shell/overview.md).
54
54
55
55
In the CLI, use `az appconfig revision list` to view changes or `az appconfig kv restore` to restore key-values, adding appropriate parameters. Specify the Azure App Configuration instance by providing either the store name (`--name <app-config-store-name>`) or by using a connection string (`--connection-string <your-connection-string>`). Restrict the output by specifying a specific point in time (`--datetime`), a label (`--label`) and the maximum number of items to return (`--top`).
56
56
and by specifying the maximum number of items to return (`--top`).
@@ -73,20 +73,20 @@ Restore for any label starting with v1. to a specific point in time.
73
73
az appconfig kv restore --name <app-config-store-name> --label v1.* --datetime "2019-05-01T11:24:12Z"
74
74
```
75
75
76
-
For more examples of CLI commands and optional parameters to restore key-value pairs, go to the [Azure CLI documentation](/cli/azure/appconfig/kv).
76
+
For more examples of CLI commands and optional parameters to restore key-value, go to the [Azure CLI documentation](/cli/azure/appconfig/kv).
77
77
78
-
You can also access the history of a specific key-value pair. This feature allows you to check the value of a specific key at a chosen point in time and to revert to a past value without updating any other key-value pair.
78
+
You can also access the history of a specific key-value. This feature allows you to check the value of a specific key at a chosen point in time and to revert to a past value without updating any other key-value.
79
79
80
80
---
81
81
82
-
## Access the history of a key-value pair
82
+
## Historical/Timeline view of key-value
83
83
84
84
> [!TIP]
85
-
> This method is convenient if you have no more than a couple of changes to make, as Configuration explorer only lets you make changes key by key. If you need to restore multiple key-value pairs at once, use the **Restore** menu instead.
85
+
> This method is convenient if you have no more than a couple of changes to make, as Configuration explorer only lets you make changes key by key. If you need to restore multiple key-values at once, use the **Restore** menu instead.
86
86
87
87
### [Portal](#tab/azure-portal)
88
88
89
-
You can also access the revision history of a specific key-value pair in the portal.
89
+
You can also access the revision history of a specific key-value in the portal.
90
90
91
91
1. In the **Operations** menu, select **Configuration explorer**.
92
92
1. Select **More actions** for the key you want to explore, and then **History**
@@ -102,9 +102,9 @@ You can also access the revision history of a specific key-value pair in the por
102
102
103
103
### [Azure CLI](#tab/azure-cli)
104
104
105
-
Use the Azure CLI as explained below to retrieve and restore a single key-value pair. If you don't have the Azure CLI installed locally, you can optionally use [Azure Cloud Shell](../cloud-shell/overview.md).
105
+
Use the Azure CLI as explained below to retrieve and restore a single key-value. If you don't have the Azure CLI installed locally, you can optionally use [Azure Cloud Shell](../cloud-shell/overview.md).
106
106
107
-
In the CLI, use `az appconfig revision list` to view changes to a key-value pair or use `az appconfig kv restore` to restore a key-value, adding appropriate parameters. Specify the Azure App Configuration instance by providing either the store name (`--name <app-config-store-name>`) or by using a connection string (`--connection-string <your-connection-string>`). Restrict the output by specifying a specific key (`--key`). Optionally, specify a label (`--label`), a point in time (`--datetime`) and the maximum number of items to return (`--top`).
107
+
In the CLI, use `az appconfig revision list` to view changes to a key-value or use `az appconfig kv restore` to restore a key-value, adding appropriate parameters. Specify the Azure App Configuration instance by providing either the store name (`--name <app-config-store-name>`) or by using a connection string (`--connection-string <your-connection-string>`). Restrict the output by specifying a specific key (`--key`). Optionally, specify a label (`--label`), a point in time (`--datetime`) and the maximum number of items to return (`--top`).
108
108
109
109
List revision history for key "color" with any labels.
0 commit comments