|
| 1 | +--- |
| 2 | +reviewed: 2025-11-23 |
| 3 | +severity: Important |
| 4 | +pillar: Operational Excellence |
| 5 | +category: OE:05 Infrastructure as code |
| 6 | +resource: Azure Cache for Redis |
| 7 | +resourceType: Microsoft.Cache/redis |
| 8 | +online version: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.Redis.MigrateAMR/ |
| 9 | +--- |
| 10 | + |
| 11 | +# Migrate to Azure Managed Redis |
| 12 | + |
| 13 | +## SYNOPSIS |
| 14 | + |
| 15 | +Azure Cache for Redis is being retired. Migrate to Azure Managed Redis. |
| 16 | + |
| 17 | +## DESCRIPTION |
| 18 | + |
| 19 | +Microsoft has announced the retirement timeline for Azure Cache for Redis across all SKUs. |
| 20 | +The recommended replacement going forward is Azure Managed Redis. |
| 21 | + |
| 22 | +Azure Cache for Redis (Basic, Standard, Premium) will be retired according to the following timeline: |
| 23 | + |
| 24 | +- Creation blocked for new customers: April 1, 2026. |
| 25 | +- Creation blocked for existing customers: October 1, 2026. |
| 26 | +- Retirement Date: September 30, 2028. |
| 27 | +- Instances will be disabled starting October 1, 2028. |
| 28 | + |
| 29 | +To avoid service disruption, migrate your workloads to Azure Managed Redis. |
| 30 | + |
| 31 | +## RECOMMENDATION |
| 32 | + |
| 33 | +Plan and execute migration from Azure Cache for Redis to Azure Managed Redis before the retirement dates to avoid service disruption. |
| 34 | + |
| 35 | +## EXAMPLES |
| 36 | + |
| 37 | +### Configure with Bicep |
| 38 | + |
| 39 | +To deploy resource that pass this rule: |
| 40 | + |
| 41 | +- Create resources of type `Microsoft.Cache/redisEnterprise` and an Azure Managed Redis SKU, such as: |
| 42 | + - `Balanced_*` |
| 43 | + - `MemoryOptimized_*` |
| 44 | + - `ComputeOptimized_*` |
| 45 | + |
| 46 | +For example: |
| 47 | + |
| 48 | +```bicep |
| 49 | +resource primary 'Microsoft.Cache/redisEnterprise@2025-07-01' = { |
| 50 | + name: name |
| 51 | + location: location |
| 52 | + properties: { |
| 53 | + highAvailability: 'Enabled' |
| 54 | + publicNetworkAccess: 'Disabled' |
| 55 | + } |
| 56 | + sku: { |
| 57 | + name: 'Balanced_B10' |
| 58 | + } |
| 59 | +} |
| 60 | +``` |
| 61 | + |
| 62 | +### Configure with Azure template |
| 63 | + |
| 64 | +To deploy resource that pass this rule: |
| 65 | + |
| 66 | +- Create resources of type `Microsoft.Cache/redisEnterprise` and an Azure Managed Redis SKU, such as: |
| 67 | + - `Balanced_*` |
| 68 | + - `MemoryOptimized_*` |
| 69 | + - `ComputeOptimized_*` |
| 70 | + |
| 71 | +For example: |
| 72 | + |
| 73 | +```json |
| 74 | +{ |
| 75 | + "type": "Microsoft.Cache/redisEnterprise", |
| 76 | + "apiVersion": "2025-07-01", |
| 77 | + "name": "[parameters('name')]", |
| 78 | + "location": "[parameters('location')]", |
| 79 | + "properties": { |
| 80 | + "highAvailability": "Enabled", |
| 81 | + "publicNetworkAccess": "Disabled" |
| 82 | + }, |
| 83 | + "sku": { |
| 84 | + "name": "Balanced_B10" |
| 85 | + } |
| 86 | +} |
| 87 | +``` |
| 88 | + |
| 89 | +## NOTES |
| 90 | + |
| 91 | +Redis Enterprise and Enterprise Flash used the `Microsoft.Cache/redisEnterprise` resource type. |
| 92 | +Redis Enterprise and Enterprise Flash SKUs `Enterprise_*` and `EnterpriseFlash_*` are also deprecated. |
| 93 | + |
| 94 | +## LINKS |
| 95 | + |
| 96 | +- [OE:05 Infrastructure as code](https://learn.microsoft.com/azure/architecture/framework/devops/automation-infrastructure) |
| 97 | +- [Azure Cache for Redis retirement: What to know and how to prepare](https://techcommunity.microsoft.com/blog/azure-managed-redis/azure-cache-for-redis-retirement-what-to-know-and-how-to-prepare/4458721) |
| 98 | +- [Azure Cache for Redis retirement FAQ](https://learn.microsoft.com/azure/azure-cache-for-redis/retirement-faq) |
| 99 | +- [Azure Managed Redis documentation](https://learn.microsoft.com/azure/azure-cache-for-redis/managed-redis/managed-redis-overview) |
| 100 | +- [Azure deployment reference](https://learn.microsoft.com/azure/templates/microsoft.cache/redisenterprise) |
0 commit comments