Redis version for Azure Cache for Redis#
Reliability · Azure Cache for Redis · 2022_12
Azure Cache for Redis should use the latest supported version of Redis.
Description#
Azure Cache for Redis supports Redis 6. Redis 6 brings new security features and better performance.
Version 4 for Azure Cache for Redis instances will be retired on June 30, 3023.
Recommendation#
Consider upgrading Redis version for Azure Cache for Redis to the latest supported version (>=6.0).
Examples#
Configure with Azure template#
To deploy Azure Cache for Redis instances that pass this rule:
- Set the
properties.redisVersion
property tolatest
or6
.
For example:
Azure Template snippet
{
"type": "Microsoft.Cache/redis",
"apiVersion": "2022-06-01",
"name": "[parameters('redisCacheName')]",
"location": "[parameters('location')]",
"properties": {
"redisVersion": "latest",
"minimumTlsVersion": "[parameters('minTlsVersion')]",
"sku": {
"capacity": "[parameters('redisCacheCapacity')]",
"family": "[parameters('redisCacheFamily')]",
"name": "[parameters('redisCacheSKU')]"
}
}
}
Configure with Bicep#
To deploy Azure Cache for Redis instances that pass this rule:
- Set the
properties.redisVersion
property tolatest
or6
.
For example:
Azure Bicep snippet
resource redisCache 'Microsoft.Cache/Redis@2022-06-01' = {
name: redisCacheName
location: location
properties: {
minimumTlsVersion: minTlsVersion
redisVersion: 'latest'
sku: {
capacity: redisCacheCapacity
family: redisCacheFamily
name: redisCacheSKU
}
}
}
Notes#
This rule is only applicable for Azure Cache for Redis (OSS Redis) offering.
Links#
- Requirements
- Security operations
- Set Redis version for Azure Cache for Redis
- How to upgrade an existing Redis 4 cache to Redis 6
- Retirements from Azure Cache for Redis
- Azure deployment reference
Last update:
2022-12-11