Let’s talk fast, accurate AI at AWS re:Invent.

Join us in Vegas on Dec. 1-5.

Blog

Deploy Azure Managed Redis with AzAPI using Terraform

November 05, 20252 minute read
Thomas Findelkind
Thomas Findelkind

Azure Managed Redis is now generally available – bringing the power of Redis Enterprise directly into the Azure ecosystem.

However, as of Terraform azure provider v4.5, some features like Persistence (RDB, AOF) and Non-Clustered mode are not yet supported.

The solution? Use the AzAPI provider to deploy Azure Managed Redis today with full feature coverage — and switch seamlessly to the native provider once support arrives.

👉 Get started now: tfindelkind-redis/azure-managed-redis-terraform

Why Azure Managed Redis?

Azure Managed Redis combines Redis Enterprise’s performance and modules with Azure’s native managed experience.

You get:

  • Enterprise-grade performance and high availability with up to 99.999% SLA*
  • Native Azure billing, security, and identity integration
  • Full module support: RedisJSON, RediSearch, RedisBloom, and RedisTimeSeries

This service is the evolution of Azure’s Redis offering — and the strategic path forward for Redis workloads in Azure.

* With recommended configuration of active georeplication.

Azure Cache for Redis Retirement!

Microsoft has announced a clear transition timeline for Azure Cache for Redis:

DateChange
October 1, 2026No new Azure Cache for Redis instances can be created
Existing InstancesSupported until further notice
Recommended PathMigrate to Azure Managed Redis for new deployments

In short: New Redis deployments on Azure should use Azure Managed Redis, which brings Redis Enterprise features under Azure’s managed control plane.

Why Use AzAPI with Terraform?

The azurerm provider doesn’t yet expose all capabilities of Azure Managed Redis.Until it does, the AzAPI provider lets you interact directly with Azure’s REST APIs through Terraform.

This approach gives you:

BenefitDescription
Full feature accessDeploy Redis with features unavailable in azurerm 4.5 (e.g., persistence, non-clustered mode)
Future-proof designModule interface remains stable — just flip one variable to migrate later
Direct API accessUse the latest Azure REST API versions without waiting for provider updates
Immediate usabilityReady-to-deploy module and tested examples available on GitHub


AzAPI vs. azurerm: Feature Comparison (as of v4.5)

FeatureAzAPI Providerazurerm v4.5
Clustered Deployments✅ Supported✅ Supported
Non-Clustered Mode ✅ Supported❌ Not yet supported
Persistence (RDB, AOF)✅ Supported❌ Not yet supported
Access Policy Assignments (Entra ID)✅ Supported❌ Not yet supported
Defer Upgrade✅ Supported❌ Not yet supported
Redis Modules (JSON, Search, Bloom, TimeSeries)✅ Supported✅ Supported
TLS / Encryption✅ Supported✅ Supported
High Availability✅ Supported✅ Supported
Geo-Replication✅ Supported✅ Supported
Managed Identity✅ Supported✅ Supported
Customer Managed Keys✅ Supported✅ Supported
Private Endpoint✅ Supported✅ Supported

Module Implementation: Deploy Azure Managed Redis Today!

To bridge the gap, this Terraform module uses AzAPI under the hood while maintaining the same interface that future azurerm resources will use.

Example: Cluster and Database Definition

Example: Database with Persistence and Non-Clustered Mode

⚠️ Note:

Persistence and Non-Clustered only supported via AzAPI.

Non-Clustered: Limitations: ≤25 GB only

Reading Access Keys

AzAPI allows direct key retrieval through the List Keys API — no scripts needed:

Future-Proof Design: The use_azapi Switch

When azurerm adds full Managed Redis support, migration is effortless.

To migrate later:

  1. Update the module
  2. Set use_azapi = false
  3. Run terraform plan
  4. Apply — same inputs, same outputs, native provider

No state migration required.

Example Scenarios

The module includes six deployment examples:

  • simple/ — Basic cluster setup
  • high-availability/ — HA configuration for production
  • with-modules/ — Redis modules showcase
  • geo-replication/ — Cross-region replication
  • enterprise-security/ — Customer Managed Keys, Managed Identity, Entra ID auth
  • clusterless-with-persistence/ — Non-clustered mode with RDB + AOF persistence

👉 Explore the module and examples: tfindelkind-redis/azure-managed-redis-terraform




Get started with Redis today

Speak to a Redis expert and learn more about enterprise-grade Redis today.