Skip to main content

Azure Cache for Redis Enterprise using Terraform

The Enterprise Tiers of Azure Cache for Redis is generally available as a native fully managed service on Microsoft Azure. This offering combines Azure’s global presence, flexibility, security, and compliance with Redis Enterprise’s unmatched availability, performance, and extended data structure functionality to create the best experience for enterprises. Enterprise features include:

Azure Resource Manager(a.k.a AzureRM) is the deployment and management service for Azure. It provides a management layer that enables you to create, update, and delete resources in your Azure account. You use management features, like access control, locks, and tags, to secure and organize your resources after deployment.

The "azurerm_redis_enterprise_cluster" is a resource that manages a Redis Enterprise cluster. This is a template to get started with the 'azurerm_redis_enterprise_cluster' resource available in the 'azurerm' provider with Terraform.


  1. Terraform CLI
  2. Azure CLI

Step 1. Getting Started

Login in Azure using the Azure CLI

az login

Step 2: Clone the repository

git clone

Step 3: Initialize the repository

cd acre-terraform-simple
terraform init

The output should include: Terraform has been successfully initialized

Step 4: Modify the variables(optional)

The default variables are setup to deploy the smallest 'E10' instance into the 'East US' region. Changes can be made by updating the file.

Step 5: Verify the plan

The 'plan' output will show you everything being created by the template.

terraform plan

The plan step does not make any changes in Azure

Step 6: Apply the plan

When the plan looks good, 'apply' the template.

terraform apply

Step 7: Connect using generated output

The access key is sensitive, so viewing the outputs must be requested specifically. The output is also in JSON format.

terraform output redisgeek_config

Example output:

"hostname" = ""
"access_key" = "DQYABC3uRMyDguEXXXXXXXXXXWTRkfgOPjs82Y="
"port" = "10000"


How to use Redis Cache for Redis like a Pro
Do More with Azure Cache for Redis, Enterprise Tiers