Share via

How do I get Azure Managed Redis to deploy with Replica nodes?

Don Mitchell 0 Reputation points Microsoft Employee
2026-04-06T22:32:27.7666667+00:00

(Azure Managed Redis question but only tag I could find was Azure Cache?)

Context - Evaluating AMR for a Redis migration in an attempt to provide better scaling and reduce total number of connections to single node.

Specifically looking at utilizing SSubscribe coupled with connections to secondary nodes to provide horizontal scaling of Shard PubSub connections while limiting impact to primary nodes.

According to the AMR Architecture doc this should be possible:

"The OSS clustering protocol requires the client to make the correct shard connections. ... use the CLUSTER NODES command to determine the exact ports used for the primary and replica shards and make the shard connections for you."

but I cannot figure out how to deploy with replica shards, so when performing the CLUSTER NODES query all I see are primary nodes.

Am I just missing an obvious config somewhere or do I need to load a bunch of data into Redis first to get it to trigger the creation of replica shards or is it something else I am missing? (Sincere apologies if I'm just blind and missing a checkbox somewhere)

Azure Cache for Redis
Azure Cache for Redis

An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.


2 answers

Sort by: Most helpful
  1. Saraswathi Devadula 16,015 Reputation points Microsoft External Staff Moderator
    2026-04-14T18:00:44.6366667+00:00

    Hi Don Mitchell

    The replica shards are not accessible as they are there as a backup for the primary. The only time the replica is available is via a failover where replica and primary switch. As far as connecting to individual "nodes" in a cache that has OSS clustering. You would use the particular port for each node. These ports start at 8500 and increment consecutively.

    The language here is misleading. What it should explain is "determine the ports for primary and replica. And make the connections to the correct PRIMARY shard for you"

    0 comments No comments

  2. Manoj Kumar Boyini 13,930 Reputation points Microsoft External Staff Moderator
    2026-04-06T23:27:05.5166667+00:00

    Hi Don Mitchell

    The behavior you’re seeing is expected. In Azure Managed Redis (AMR), replica shards are not created dynamically and are not controlled through a user-configurable setting like in classic Azure Cache for Redis. Replication is part of the service’s high-availability architecture and is handled automatically by the platform.

    The key factor in your scenario is the clustering policy.

    Azure Managed Redis supports two clustering modes:

    1. OSS Clustering
      – Exposes full Redis Cluster topology
      CLUSTER NODES returns primary and replica shard details
      – Clients can connect to individual shards
    2. Enterprise (proxy-based) Clustering
      – Uses a single endpoint
      – Does not expose shard or replica topology
      CLUSTER NODES is not supported
      – Replication still exists internally but is abstracted by the service

    If your deployment is using Enterprise clustering, you will not see replica nodes via CLUSTER NODES, even though replicas exist internally.

    Replica nodes are not created based on data volume. They are provisioned as part of the service architecture, and their visibility depends on the clustering mode selected during deployment.

    Because the clustering policy cannot be changed after provisioning, if you require visibility into shard topology (for example, to connect to replicas for Pub/Sub scaling), you will need to deploy the cache using OSS clustering.

    Helpful Reference:
    https://learn.microsoft.com/en-us/azure/redis/architecture

    Hope this helps, Please let us know if you have any questions and concerns.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.