Skip to content

Commit 9985738

Browse files
committed
Accepted user feedback
1 parent b985eae commit 9985738

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

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

Lines changed: 10 additions & 8 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,17 +64,19 @@ 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, use the following command. If private endpoint is enabled on the cache, use the command that is appropriate based on whether `PublicNetworkAccess` is enabled or disabled:
6868

69-
```azurecli-interactive
70-
az redis update --name cacheName --resource-group resourceGroupName --set redisVersion=6
69+
If `PublicNetworkAccess` is enabled:
70+
71+
```azurecli
72+
az redis update --name <cacheName> --resource-group <resourceGroupName> --set publicNetworkAccess=Enabled redisVersion=6
7173
```
72-
>[!NOTE]
73-
> If private endpoint is enabled on the cache - based on whether PublicNetworkAccess is enabled or disabled,please refer the below commands:
7474

75-
>If PublicNetworkAccess is enabled- az redis update --name cacheName --resource-group resourceGroupName --set publicNetworkAccess=Enabled redisVersion=6
76-
>If PublicNetworkAccess is disabled- az redis update --name cacheName --resource-group resourceGroupName --set publicNetworkAccess=Disabled redisVersion=6
75+
If `PublicNetworkAccess` is disabled:
7776

77+
```azurecli
78+
az redis update --name <cacheName> --resource-group <resourceGroupName> --set publicNetworkAccess=Disabled redisVersion=6
79+
```
7880

7981
## Upgrade using PowerShell
8082

0 commit comments

Comments
 (0)