You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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).
28
29
29
30
## Prerequisites
30
31
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.
32
33
33
34
```azurepowershell
34
35
Get-Module Az | format-table version
@@ -84,7 +85,7 @@ To connect to the Azure Government Cloud, use one of the following commands.
@@ -182,10 +183,10 @@ New Azure Cache for Redis instances are created using the [New-AzRedisCache](/po
182
183
183
184
> [!IMPORTANT]
184
185
> 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.
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.
359
360
360
361
The following command updates the maxmemory-policy for the Azure Cache for Redis named myCache.
361
362
@@ -367,21 +368,21 @@ The following command updates the maxmemory-policy for the Azure Cache for Redis
367
368
368
369
## To scale an Azure Cache for Redis
369
370
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.
371
372
372
373
> [!NOTE]
373
374
> 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
+
>
375
376
> * You can't scale from a higher pricing tier to a lower pricing tier.
376
377
> * You can't scale from a **Premium** cache down to a **Standard** or a **Basic** cache.
377
378
> * You can't scale from a **Standard** cache down to a **Basic** cache.
378
379
> * 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.
379
380
> * 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.
380
381
> * You can't scale from a larger size down to the **C0 (250 MB)** size.
381
-
>
382
+
>
382
383
> For more information, see [How to Scale Azure Cache for Redis](cache-how-to-scale.md).
383
-
>
384
-
>
384
+
>
385
+
>
385
386
386
387
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.
387
388
@@ -663,15 +664,14 @@ In the following example, the cache named `myCache` is removed.
663
664
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
664
665
```
665
666
666
-
667
667
## To import an Azure Cache for Redis
668
668
669
669
You can import data into an Azure Cache for Redis instance using the `Import-AzRedisCache` cmdlet.
670
670
671
671
> [!IMPORTANT]
672
672
> 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
+
>
675
675
676
676
To see a list of available parameters and their descriptions for `Import-AzRedisCache`, run the following command.
677
677
@@ -722,7 +722,6 @@ To see a list of available parameters and their descriptions for `Import-AzRedis
The following command imports data from the blob specified by the SAS uri into Azure Cache for Redis.
727
726
728
727
```azurepowershell
@@ -735,8 +734,8 @@ You can export data from an Azure Cache for Redis instance using the `Export-AzR
735
734
736
735
> [!IMPORTANT]
737
736
> 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
+
>
740
739
741
740
To see a list of available parameters and their descriptions for `Export-AzRedisCache`, run the following command.
742
741
@@ -786,7 +785,6 @@ To see a list of available parameters and their descriptions for `Export-AzRedis
The following command exports data from an Azure Cache for Redis instance into the container specified by the SAS uri.
791
789
792
790
```azurepowershell
@@ -800,9 +798,9 @@ The following command exports data from an Azure Cache for Redis instance into t
800
798
You can reboot your Azure Cache for Redis instance using the `Reset-AzRedisCache` cmdlet.
801
799
802
800
> [!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
+
>
806
804
807
805
To see a list of available parameters and their descriptions for `Reset-AzRedisCache`, run the following command.
808
806
@@ -852,15 +850,13 @@ To see a list of available parameters and their descriptions for `Reset-AzRedisC
0 commit comments