Skip to content

Commit bb294d7

Browse files
Merge pull request #248652 from flang-msft/fxl-----update-cache-how-to-upgrade-111329
Fxl---update cache how to upgrade 111329
2 parents cc9e93f + 07044b0 commit bb294d7

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

articles/azure-cache-for-redis/cache-how-to-upgrade.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: flang-msft
66
ms.author: franlanglois
77
ms.service: cache
88
ms.topic: how-to
9-
ms.date: 06/29/2023
9+
ms.date: 08/17/2023
1010
ms.custom: template-how-to, devx-track-azurecli
1111
---
1212

@@ -64,12 +64,28 @@ Before you upgrade, check the Redis version of a cache by selecting **Properties
6464

6565
## Upgrade using Azure CLI
6666

67-
To upgrade a cache from 4 to 6 using the Azure CLI, use the following command:
67+
To upgrade a cache from 4 to 6 using the Azure CLI that is not using Private Endpoint, use the following command.
6868

6969
```azurecli-interactive
7070
az redis update --name cacheName --resource-group resourceGroupName --set redisVersion=6
7171
```
7272

73+
### Private Endpoint
74+
75+
If Private Endpoint is enabled on the cache, use the command that is appropriate based on whether `PublicNetworkAccess` is enabled or disabled:
76+
77+
If `PublicNetworkAccess` is enabled:
78+
79+
```azurecli
80+
az redis update --name <cacheName> --resource-group <resourceGroupName> --set publicNetworkAccess=Enabled redisVersion=6
81+
```
82+
83+
If `PublicNetworkAccess` is disabled:
84+
85+
```azurecli
86+
az redis update --name <cacheName> --resource-group <resourceGroupName> --set publicNetworkAccess=Disabled redisVersion=6
87+
```
88+
7389
## Upgrade using PowerShell
7490

7591
To upgrade a cache from 4 to 6 using PowerShell, use the following command:

0 commit comments

Comments
 (0)