Deploy Azure Managed Redis with AzAPI using Terraform
Blog post from Redis
Azure Managed Redis is now generally available, offering the performance and modules of Redis Enterprise within the Azure ecosystem, integrated with Azure's security and billing. Although the Terraform azurerm provider version 4.5 does not yet support certain features like Persistence and Non-Clustered mode, the AzAPI provider can be used to deploy Azure Managed Redis with full functionality by interfacing directly with Azure's REST APIs. The transition from Azure Cache for Redis to Azure Managed Redis is recommended, as Microsoft has announced a timeline for the retirement of new Azure Cache for Redis instances by October 2026. Using AzAPI with Terraform allows immediate deployment of Redis with features unavailable in azurerm 4.5, providing a future-proof solution that can easily switch back to the native provider once it supports all functionalities. The AzAPI provider offers benefits such as full feature access, direct API interaction, and a stable module interface, enabling effective management of Redis deployments in Azure.