Hi Rajiv,
Answers below:
I want to turn on Zone redundancy for Azure Cache for Redis with two Availability zones. SKU used is Premium tier. I have selected Availability Zones: Zone1 and Zone2. What is the minimum number of replicas to be set: 1, 2 or 3.
A: Minimum number of replicas is 1 since there will only be two Availability Zones.
... if Availability Zone is switched on, is the first replica created in different availability Zone or the same as the primary.
A: The replica will be created in different Availability Zone than the primary. You may check this after creating your zone-redundant cache. In sample screenshot below, you can see there are two nodes, and they are in different Availability Zones:
Below screenshot is for 2 shards (four nodes), again notice that they are spread across availability zones:
Please click Accept Answer and upvote if the above was helpful.
Thanks.
-TP