Skip to content

Commit 9c89ff7

Browse files
Merge pull request #305437 from flang-msft/fxl--cawa-vnet
Fxl---cawa vnet
2 parents 65c5513 + 0f0d2b1 commit 9c89ff7

1 file changed

Lines changed: 5 additions & 57 deletions

File tree

articles/azure-cache-for-redis/cache-how-to-premium-vnet.md

Lines changed: 5 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to create and manage virtual network support for your Pre
44

55

66
ms.topic: conceptual
7-
ms.date: 12/17/2024
7+
ms.date: 09/11/2025
88
appliesto:
99
- ✅ Azure Cache for Redis
1010

@@ -35,63 +35,11 @@ appliesto:
3535
- When using a VNet injected cache, you must keep your VNet updated to allow access to cache dependencies, such as Certificate Revocation Lists, Public Key Infrastructure, Azure Key Vault, Azure Storage, Azure Monitor, and more.
3636
- VNet injected caches are only available for Premium-tier Azure Cache for Redis, not other tiers.
3737
- You can't inject an existing Azure Cache for Redis instance into a Virtual Network. You must select this option when you _create_ the cache.
38+
- Azure portal doesn't support configuring VNET injection during resource create
3839

3940
## Set up virtual network support
4041

41-
Virtual network support is configured on the **New Azure Cache for Redis** pane during cache creation.
42-
43-
1. To create a Premium-tier cache, sign in to the [Azure portal](https://portal.azure.com) and select **Create a resource**. You can also create them by using Resource Manager templates, PowerShell, or the Azure CLI.
44-
45-
:::image type="content" source="media/cache-private-link/1-create-resource.png" alt-text="Screenshot that shows Create a resource.":::
46-
47-
1. On the **New** page, select **Databases**. Then select **Azure Cache for Redis**.
48-
49-
:::image type="content" source="media/cache-private-link/2-select-cache.png" alt-text="Screenshot that shows selecting Azure Cache for Redis.":::
50-
51-
1. On the **New Redis Cache** page, configure the settings for your new Premium-tier cache.
52-
53-
| Setting | Suggested value | Description |
54-
| ------------ | ------- | -------------------------------------------------- |
55-
| **DNS name** | Enter a globally unique name. | The cache name must be a string between 1 and 63 characters that contain only numbers, letters, or hyphens. The name must start and end with a number or letter, and it can't contain consecutive hyphens. Your cache instance's _host name_ will be `\<DNS name>.redis.cache.windows.net`. |
56-
| **Subscription** | Select your subscription from the drop-down list. | The subscription under which to create this new Azure Cache for Redis instance. |
57-
| **Resource group** | Select a resource group from the drop-down list, or select **Create new** and enter a new resource group name. | The 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. |
58-
| **Location** | Select a location from the drop-down list. | Select a [region](https://azure.microsoft.com/regions/) near other services that will use your cache. |
59-
| **Cache type** |Select a Premium-tier cache from the drop-down list to configure Premium-tier features. For more information, see [Azure Cache for Redis pricing](https://azure.microsoft.com/pricing/details/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](cache-overview.md). |
60-
61-
1. Select the **Networking** tab, or select the **Networking** button at the bottom of the page.
62-
63-
1. On the **Networking** tab, select **Virtual Networks** as your connectivity method. To use a new virtual network, create it first by following the steps in [Create a virtual network using the Azure portal](../virtual-network/manage-virtual-network.yml#create-a-virtual-network) or [Create a virtual network (classic) by using the Azure portal](/previous-versions/azure/virtual-network/virtual-networks-create-vnet-classic-pportal). Then return to the **New Azure Cache for Redis** pane to create and configure your Premium-tier cache.
64-
65-
> [!IMPORTANT]
66-
> When you deploy Azure Cache for Redis to a Resource Manager virtual network, the cache must be in a dedicated subnet that contains no other resources except for Azure Cache for Redis instances. If you attempt to deploy an Azure Cache for Redis instance to a Resource Manager virtual network subnet that contains other resources, or has a NAT Gateway assigned, the deployment fails. The failure is because Azure Cache for Redis uses a basic load balancer that is not compatible with a NAT Gateway.
67-
68-
| Setting | Suggested value | Description |
69-
| ------------ | ------- | -------------------------------------------------- |
70-
| **Virtual network** | Select your virtual network from the drop-down list. | Select a virtual network that's in the same subscription and location as your cache. |
71-
| **Subnet** | Select your subnet from the drop-down list. | The subnet's address range should be in CIDR notation (for example, 192.168.1.0/24). It must be contained by the address space of the virtual network. |
72-
| **Static IP address** | (Optional) Enter a static IP address. | If you don't specify a static IP address, an IP address is chosen automatically. |
73-
74-
> [!IMPORTANT]
75-
> Azure reserves some IP addresses within each subnet, and these addresses can't be used. The first and last IP addresses of the subnets are reserved for protocol conformance, along with three more addresses used for Azure services. For more information, see [Are there any restrictions on using IP addresses within these subnets?](../virtual-network/virtual-networks-faq.md#are-there-any-restrictions-on-using-ip-addresses-within-these-subnets)
76-
>
77-
> In addition to the IP addresses used by the Azure virtual network infrastructure, each Azure Cache for Redis instance in the subnet uses two IP addresses per shard and one additional IP address for the load balancer. A nonclustered cache is considered to have one shard.
78-
>
79-
80-
1. Select the **Next: Advanced** tab, or select the **Next: Advanced** button at the bottom of the page.
81-
82-
1. On the **Advanced** tab for a Premium-tier cache instance, configure the settings for non-TLS port, clustering, and data persistence.
83-
84-
1. Select the **Next: Tags** tab, or select the **Next: Tags** button at the bottom of the page.
85-
86-
1. Optionally, on the **Tags** tab, enter the name and value if you want to categorize the resource.
87-
88-
1. Select **Review + create**. You're taken to the **Review + create** tab where Azure validates your configuration.
89-
90-
1. After the green **Validation passed** message appears, select **Create**.
91-
92-
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. After the cache is created, you can view the configuration for the virtual network by selecting **Virtual Network** from the **Resource** menu.
93-
94-
:::image type="content" source="media/cache-how-to-premium-vnet/redis-cache-vnet-info.png" alt-text="Virtual network":::
42+
Refer to [az redis create](/cli/azure/redis#az-redis-create).
9543

9644
## Azure Cache for Redis virtual network FAQ
9745

@@ -269,7 +217,7 @@ You must also have enough IP addresses available in the subnet.
269217

270218
Azure reserves some IP addresses within each subnet, and these addresses can't be used. The first and last IP addresses of the subnets are reserved for protocol conformance, along with three more addresses used for Azure services. For more information, see [Are there any restrictions on using IP addresses within these subnets?](../virtual-network/virtual-networks-faq.md#are-there-any-restrictions-on-using-ip-addresses-within-these-subnets)
271219

272-
In addition to the IP addresses used by the Azure virtual network infrastructure, each Azure Cache for Redis instance in the subnet uses two IP addresses per cluster shard, plus IP addresses for additional replicas, if any. One more IP address is used for the load balancer. A non-clustered cache is considered to have one shard.
220+
In addition to the IP addresses used by the Azure virtual network infrastructure, each Azure Cache for Redis instance in the subnet uses two IP addresses per cluster shard, plus IP addresses for more replicas, if any. One more IP address is used for the load balancer. A non-clustered cache is considered to have one shard.
273221

274222
### Can I connect to my cache from a peered virtual network?
275223

@@ -297,7 +245,7 @@ By default, a newly created ExpressRoute circuit doesn't use forced tunneling (a
297245

298246
A common customer configuration is to use forced tunneling (advertise a default route), which forces outbound internet traffic to instead flow on-premises. This traffic flow breaks connectivity with Azure Cache for Redis if the outbound traffic is then blocked on-premises such that the Azure Cache for Redis instance isn't able to communicate with its dependencies.
299247

300-
The solution is to define one or more user-defined routes (UDRs) on the subnet that contains the Azure Cache for Redis instance. A UDR defines subnet-specific routes that will be honored instead of the default route.
248+
The solution is to define one or more user-defined routes (UDRs) on the subnet that contains the Azure Cache for Redis instance. A UDR defines subnet-specific routes that are honored instead of the default route.
301249

302250
If possible, use the following configuration:
303251

0 commit comments

Comments
 (0)