Add replicas to Azure Cache for Redis

In this article, you'll learn how to set up an Azure Cache for Redis instance with additional replicas using the Azure portal.

Azure Cache for Redis Standard and Premium tiers offer redundancy by hosting each cache on two dedicated virtual machines (VMs). These VMs are configured as primary and replica. When the primary VM becomes unavailable, the replica detects that and takes over as the new primary automatically. You can now increase the number of replicas in a Premium cache up to three, giving you a total of four VMs backing a cache. Having multiple replicas results in higher resilience than what a single replica can provide.


Create a cache

To create a cache, follow these steps:

  1. Sign in to the Azure portal and select Create a resource.

  2. On the New page, select Databases and then select Azure Cache for Redis.

    Select Azure Cache for Redis.

  3. On the Basics page, configure the settings for your new cache.

    Setting Suggested value Description
    Subscription Select your subscription. The subscription under which to create this new Azure Cache for Redis instance.
    Resource group Select a resource group, or select Create new and enter a new resource group name. Name for the resource group in which to create your cache and other resources. By putting all your app resources in one resource group, you can easily manage or delete them together.
    DNS name Enter a globally unique name. The cache name must be a string between 1 and 63 characters that contains only numbers, letters, or hyphens. The name must start and end with a number or letter, and can't contain consecutive hyphens. Your cache instance's host name will be <DNS name>
    Location Select a location. Select a region near other services that will use your cache.
    Cache type Select a Premium tier cache. The pricing tier determines the size, performance, and features that are available for the cache. For more information, see Azure Cache for Redis Overview.
  4. On the Advanced page, choose Replica count.

    Replica count.

  5. Configure your settings for clustering or relational database persistence.


    Currently, you can't use Append-only File (AOF) persistence or geo-replication with multiple replicas (more than one replica).

  6. Leave other options in their default settings.

  7. Select Create.

    It takes a while for the cache to create. You can monitor progress on the Azure Cache for Redis Overview page. When Status shows as Running, the cache is ready to use.


    The number of replicas in a cache can't be changed after it's created.

Next Steps

Learn more about Azure Cache for Redis features.