Skip to content

Commit 1ba4678

Browse files
committed
fix for bug 12492430
1 parent bdbcf03 commit 1ba4678

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

articles/azure-cache-for-redis/cache-how-to-manage-redis-cache-powershell.md

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,23 @@ ms.custom: devx-track-azurepowershell
1313
# Manage Azure Cache for Redis with Azure PowerShell
1414

1515
> [!div class="op_single_selector"]
16+
1617
> * [PowerShell](cache-how-to-manage-redis-cache-powershell.md)
1718
> * [Azure CLI](cache-manage-cli.md)
18-
>
19-
>
19+
>
20+
>
2021
2122
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
2223

23-
This article shows you how to do common tasks such as create, update, and scale your Azure Cache for Redis instances. The article also shows how to regenerate access keys, and how to view information about your caches. For a complete list of Azure Cache for Redis PowerShell cmdlets, see [Azure Cache for Redis cmdlets](/powershell/module/az.rediscache).
24+
This article shows you how to create, update, and scale your Azure Cache for Redis instances. The article also shows how to regenerate access keys, and how to view information about your caches. For a complete list of Azure Cache for Redis PowerShell cmdlets, see [Azure Cache for Redis cmdlets](/powershell/module/az.rediscache).
2425

2526
[!INCLUDE [learn-about-deployment-models](../../includes/learn-about-deployment-models-rm-include.md)]
2627

2728
For more information about the classic deployment model, see [Azure Resource Manager vs. classic deployment: Understand deployment models and the state of your resources](../azure-resource-manager/management/deployment-models.md).
2829

2930
## Prerequisites
3031

31-
If you have already installed Azure PowerShell, you must have Azure PowerShell version 1.0.0 or later. You can check the version of Azure PowerShell you've installed with this command at the Azure PowerShell command prompt.
32+
If you have already installed Azure PowerShell, you must have Azure PowerShell version 1.0.0 or later. You can check the version of Azure PowerShell with this command at the Azure PowerShell command prompt.
3233

3334
```azurepowershell
3435
Get-Module Az | format-table version
@@ -84,7 +85,7 @@ To connect to the Azure Government Cloud, use one of the following commands.
8485
Connect-AzAccount -EnvironmentName AzureUSGovernment
8586
```
8687

87-
or
88+
Or
8889

8990
```azurepowershell
9091
Connect-AzAccount -Environment (Get-AzEnvironment -Name AzureUSGovernment)
@@ -105,7 +106,7 @@ To connect to the Azure China 21Vianet cloud, use one of the following commands.
105106
Connect-AzAccount -EnvironmentName AzureChinaCloud
106107
```
107108

108-
or
109+
Or
109110

110111
```azurepowershell
111112
Connect-AzAccount -Environment (Get-AzEnvironment -Name AzureChinaCloud)
@@ -126,7 +127,7 @@ To connect to Microsoft Azure Germany, use one of the following commands.
126127
Connect-AzAccount -EnvironmentName AzureGermanCloud
127128
```
128129

129-
or
130+
Or
130131

131132
```azurepowershell
132133
Connect-AzAccount -Environment (Get-AzEnvironment -Name AzureGermanCloud)
@@ -182,10 +183,10 @@ New Azure Cache for Redis instances are created using the [New-AzRedisCache](/po
182183

183184
> [!IMPORTANT]
184185
> The first time you create an Azure Cache for Redis in a subscription using the Azure portal, the portal registers the `Microsoft.Cache` namespace for that subscription. If you attempt to create the first Azure Cache for Redis in a subscription using PowerShell, you must first register that namespace using the following command; otherwise cmdlets such as `New-AzRedisCache` and `Get-AzRedisCache` fail.
185-
>
186+
>
186187
> `Register-AzResourceProvider -ProviderNamespace "Microsoft.Cache"`
187-
>
188-
>
188+
>
189+
>
189190
190191
To see a list of available parameters and their descriptions for `New-AzRedisCache`, run the following command.
191192

@@ -355,7 +356,7 @@ To see a list of available parameters and their descriptions for `Set-AzRedisCac
355356
about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
356357
```
357358

358-
The `Set-AzRedisCache` cmdlet can be used to update properties such as `Size`, `Sku`, `EnableNonSslPort`, and the `RedisConfiguration` values.
359+
The `Set-AzRedisCache` cmdlet can be used to update properties such as `Size`, `Sku`, `EnableNonSslPort`, and the `RedisConfiguration` values.
359360

360361
The following command updates the maxmemory-policy for the Azure Cache for Redis named myCache.
361362

@@ -367,21 +368,21 @@ The following command updates the maxmemory-policy for the Azure Cache for Redis
367368

368369
## To scale an Azure Cache for Redis
369370

370-
`Set-AzRedisCache` can be used to scale an Azure Cache for Redis instance when the `Size`, `Sku`, or `ShardCount` properties are modified.
371+
`Set-AzRedisCache` can be used to scale an Azure Cache for Redis instance when the `Size`, `Sku`, or `ShardCount` properties are modified.
371372

372373
> [!NOTE]
373374
> Scaling a cache using PowerShell is subject to the same limits and guidelines as scaling a cache from the Azure portal. You can scale to a different pricing tier with the following restrictions.
374-
>
375+
>
375376
> * You can't scale from a higher pricing tier to a lower pricing tier.
376377
> * You can't scale from a **Premium** cache down to a **Standard** or a **Basic** cache.
377378
> * You can't scale from a **Standard** cache down to a **Basic** cache.
378379
> * You can scale from a **Basic** cache to a **Standard** cache but you can't change the size at the same time. If you need a different size, you can do a subsequent scaling operation to the desired size.
379380
> * You can't scale from a **Basic** cache directly to a **Premium** cache. You must scale from **Basic** to **Standard** in one scaling operation, and then from **Standard** to **Premium** in a subsequent scaling operation.
380381
> * You can't scale from a larger size down to the **C0 (250 MB)** size.
381-
>
382+
>
382383
> For more information, see [How to Scale Azure Cache for Redis](cache-how-to-scale.md).
383-
>
384-
>
384+
>
385+
>
385386
386387
The following example shows how to scale a cache named `myCache` to a 2.5-GB cache. This command works for both a Basic or a Standard cache.
387388

@@ -663,15 +664,14 @@ In the following example, the cache named `myCache` is removed.
663664
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
664665
```
665666

666-
667667
## To import an Azure Cache for Redis
668668

669669
You can import data into an Azure Cache for Redis instance using the `Import-AzRedisCache` cmdlet.
670670

671671
> [!IMPORTANT]
672672
> Import/Export is only available for [Premium tier](cache-overview.md#service-tiers) caches. For more information about Import/Export, see [Import and Export data in Azure Cache for Redis](cache-how-to-import-export-data.md).
673-
>
674-
>
673+
>
674+
>
675675
676676
To see a list of available parameters and their descriptions for `Import-AzRedisCache`, run the following command.
677677

@@ -722,7 +722,6 @@ To see a list of available parameters and their descriptions for `Import-AzRedis
722722
about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
723723
```
724724

725-
726725
The following command imports data from the blob specified by the SAS uri into Azure Cache for Redis.
727726

728727
```azurepowershell
@@ -735,8 +734,8 @@ You can export data from an Azure Cache for Redis instance using the `Export-AzR
735734

736735
> [!IMPORTANT]
737736
> Import/Export is only available for [Premium tier](cache-overview.md#service-tiers) caches. For more information about Import/Export, see [Import and Export data in Azure Cache for Redis](cache-how-to-import-export-data.md).
738-
>
739-
>
737+
>
738+
>
740739
741740
To see a list of available parameters and their descriptions for `Export-AzRedisCache`, run the following command.
742741

@@ -786,7 +785,6 @@ To see a list of available parameters and their descriptions for `Export-AzRedis
786785
about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
787786
```
788787

789-
790788
The following command exports data from an Azure Cache for Redis instance into the container specified by the SAS uri.
791789

792790
```azurepowershell
@@ -800,9 +798,9 @@ The following command exports data from an Azure Cache for Redis instance into t
800798
You can reboot your Azure Cache for Redis instance using the `Reset-AzRedisCache` cmdlet.
801799

802800
> [!IMPORTANT]
803-
> Reboot is only available for [Premium tier](cache-overview.md#service-tiers) caches. For more information about rebooting your cache, see [Cache administration - reboot](cache-administration.md#reboot).
804-
>
805-
>
801+
> Reboot is only available for [Basic, Standard, and Premium tier](cache-overview.md#service-tiers) caches. For more information about rebooting your cache, see [Cache administration - reboot](cache-administration.md#reboot).
802+
>
803+
>
806804
807805
To see a list of available parameters and their descriptions for `Reset-AzRedisCache`, run the following command.
808806

@@ -852,15 +850,13 @@ To see a list of available parameters and their descriptions for `Reset-AzRedisC
852850
about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
853851
```
854852

855-
856853
The following command reboots both nodes of the specified cache.
857854

858855
```azurepowershell
859856
PS C:\>Reset-AzRedisCache -ResourceGroupName "resourceGroupName" -Name "cacheName" -RebootType "AllNodes"
860857
-Force
861858
```
862859

863-
864860
## Next steps
865861

866862
To learn more about using Windows PowerShell with Azure, see the following resources:

0 commit comments

Comments
 (0)