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-cache-for-redis/cache-how-to-premium-persistence.md
+40-9Lines changed: 40 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn about Redis persistence, and how to configure and manage data
4
4
5
5
ms.custom: devx-track-azurecli
6
6
ms.topic: conceptual
7
-
ms.date: 04/10/2025
7
+
ms.date: 04/21/2025
8
8
appliesto:
9
9
- ✅ Azure Cache for Redis
10
10
---
@@ -16,6 +16,27 @@ This article describes Redis persistence, and how to configure and manage data p
16
16
17
17
The ability to persist data is an important way to boost the durability of a cache instance, because it stores all cache data in memory. Persistence should be a key part of your Azure Redis [high availability and disaster recovery](cache-high-availability.md) strategy.
18
18
19
+
>[!IMPORTANT]
20
+
>The data persistence functionality provides resilience for unexpected Redis node failures. Data persistence isn't a data backup or point in time recovery (PITR) feature. If corrupted data is written to the Redis instance, the corrupted data is also persisted. To make backups of your Redis instance, use the [Export](cache-how-to-import-export-data.md) feature.
21
+
22
+
#### [Premium tier](#tab/premium)
23
+
24
+
>[!IMPORTANT]
25
+
>If you're using persistence on the Premium tier, check to see if your storage account has soft delete enabled before using the data persistence feature. Using data persistence with soft delete causes high storage costs. For more information, see [Should I enable soft delete?](#how-frequently-does-rdb-and-aof-persistence-write-to-my-blobs-and-should-i-enable-soft-delete)
26
+
27
+
#### [Enterprise tiers](#tab/enterprise)
28
+
29
+
>[!IMPORTANT]
30
+
>The *always write* option for AOF persistence on the Enterprise and Enterprise Flash tiers is retired and no longer recommended. This option had significant performance limitations. Use the *write every second* option or use RDB persistence instead.
31
+
32
+
---
33
+
34
+
## Scope of availability
35
+
36
+
|Tier | Basic, Standard | Premium |Enterprise, Enterprise Flash |
37
+
|---------|---------|---------|---------|
38
+
|Available | No | Yes | Yes (preview) |
39
+
19
40
## Types of Redis data persistence
20
41
21
42
Azure Redis offers two types of data persistence, the *Redis database* (RDB) format and the *Append-only File* (AOF) format.
@@ -26,21 +47,25 @@ Azure Redis offers two types of data persistence, the *Redis database* (RDB) for
26
47
27
48
## Requirements and limitations
28
49
29
-
- Data persistence functionality provides resilience for unexpected Redis node failures. Data persistence isn't a data backup or point in time recovery (PITR) feature. If corrupted data is written to the Redis instance, the corrupted data also persists. To back up your Redis instance, use the [export feature](cache-how-to-import-export-data.md).
50
+
- Data persistence functionality provides resilience for unexpected Redis node failures. Data persistence isn't a data backup or PITR feature. If corrupted data is written to the Redis instance, the corrupted data also persists. To back up your Redis instance, use the [Export](cache-how-to-import-export-data.md) feature.
51
+
52
+
- Azure Cache for Redis persistence features are intended to restore data automatically to the same cache after data loss. You can't import persisted data files to a new or existing cache.
53
+
54
+
- To move data across caches, use the [Import and Export data](cache-how-to-import-export-data.md) features.
30
55
31
-
- Azure Cache for Redis persistence features are intended to restore data automatically to the same cache after data loss. You can't import persisted data files to a new or existing cache. To move data across caches, use the [Import and Export data](cache-how-to-import-export-data.md) feature. To generate data backups to add to a cache, you can use automated PowerShell or Azure CLI scripts that export data periodically.
56
+
- To generate any backups of data that can be added to a new cache, you can use automated scripts using PowerShell or Azure CLI that export data periodically.
32
57
33
58
- Persistence isn't supported with caches that use [passive geo-replication](cache-how-to-geo-replication.md) or [active geo-replication](cache-how-to-active-geo-replication.md).
34
59
35
60
#### [Premium tier](#tab/premium)
36
61
37
62
- On the Premium tier, data is persisted directly to an Azure Storage account that you own and manage.
38
63
39
-
- The storage account for data persistence must be in the same region as the cache instance. However, you can use a storage account in a different subscription to persist data if you use [managed identity](cache-managed-identity.md) to connect to the storage account.
64
+
- The storage account for Premium-tier data persistence must be in the same region as the cache instance. However, you can use a storage account in a different subscription to persist data if you use [managed identity](cache-managed-identity.md) to connect to the storage account.
40
65
41
-
- It's best to disable the soft delete feature on the storage account you use for data persistence. Using data persistence with soft delete causes high storage costs. For more information, see [Pricing and billing](/azure/storage/blobs/soft-delete-blob-overview) and [Should I enable soft delete?](#how-frequently-does-rdb-and-aof-persistence-write-to-my-blobs-and-should-i-enable-soft-delete)
66
+
- It's best to disable the soft delete feature on the storage account you use for Premium-tier data persistence. Using data persistence with soft delete causes high storage costs. For more information, see [Pricing and billing](/azure/storage/blobs/soft-delete-blob-overview) and [Should I enable soft delete?](#how-frequently-does-rdb-and-aof-persistence-write-to-my-blobs-and-should-i-enable-soft-delete)
42
67
43
-
- RDB files are backed up to storage in the form of page blobs. Page blobs aren't supported in storage accounts with Hierarchical Namespace (HNS) enabled, such as Azure Data Lake Storage Gen2, so persistence tends to fail in those storage accounts.
68
+
- RDB files are backed up to storage in the form of page blobs. Page blobs aren't supported in storage accounts with Hierarchical Namespace (HNS) enabled, such as Azure Data Lake Storage Gen2, so persistence tends to fail in those storage accounts.
44
69
45
70
- On the Premium tier, AOF persistence isn't supported with [multiple replicas](cache-how-to-multi-replicas.md).
46
71
@@ -49,11 +74,11 @@ Azure Redis offers two types of data persistence, the *Redis database* (RDB) for
49
74
- On the Enterprise and Enterprise Flash tiers, data is persisted to a managed disk attached directly to the cache instance. The location isn't configurable nor accessible to the user. Using a managed disk improves persistence performance.
50
75
51
76
>[!NOTE]
52
-
>The *always write* option for AOF persistence is retired and no longer recommended. This option had significant performance limitations. Use the *write every second* option or use RDB persistence instead.
77
+
>The *always write* option for AOF persistence on the Enterprise and Enterprise Flash tiers is retired and no longer recommended. This option had significant performance limitations. Use the *write every second* option or use RDB persistence instead.
53
78
54
79
---
55
80
56
-
###Data encryption
81
+
## Data encryption
57
82
58
83
Because Redis persistence creates data at rest, it's important to encrypt this data. Encryption options vary based on the Azure Redis tier you use.
59
84
@@ -80,10 +105,13 @@ You can use the Azure portal, Azure Resource Manager (ARM) templates, PowerShell
80
105
81
106
### Set up data persistence in the Azure portal
82
107
83
-
In the Azure portal, you can set up data persistence when you create your Azure Redis Premium or Enterprise-level cache instance. You can also add persistence to a previously created cache by navigating to **Data persistence** under **Settings** in the left navigation menu for your cache.
108
+
In the Azure portal, you can set up data persistence when you create your Azure Redis Premium or Enterprise-level cache instance.
84
109
85
110
#### [Premium tier](#tab/premium)
86
111
112
+
>[!NOTE]
113
+
>You can also add persistence to a previously created cache by navigating to **Data persistence** under **Settings** in the left navigation menu for your cache.
114
+
87
115
1. To create a Premium cache in the [Azure portal](https://portal.azure.com), follow the instructions at [Quickstart: Create an open-source Redis cache](quickstart-create-redis.md), and select **Premium** for the **Cache SKU** on the **Basics** tab.
88
116
89
117
:::image type="content" source="media/cache-how-to-premium-persistence/create-resource.png" alt-text="Screenshot that shows a form to create an Azure Cache for Redis resource.":::
@@ -121,6 +149,9 @@ With AOF persistence, write operations to the cache save to the named storage ac
121
149
122
150
#### [Enterprise tiers](#tab/enterprise)
123
151
152
+
>[!NOTE]
153
+
>You can also add persistence to a previously created cache by navigating to **Advanced settings** under **Settings** in the left navigation menu for your cache.
154
+
124
155
1. To create an Enterprise-level cache in the [Azure portal](https://portal.azure.com), follow the instructions in the [Enterprise tier quickstart guide](quickstart-create-redis-enterprise.md).
125
156
126
157
1. When you fill out the **Advanced** tab, select either **RDB** or **AOF** persistence for **Backup file** under **(PREVIEW) Data Persistence**.
0 commit comments