Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-AzureRedisCache

Set-AzureRedisCache

microsoft.azure.commands.rediscache.dll

Synopsis

Set redis cache updatable parameters.

Syntax

Set-AzureRedisCache [-Name] [-ResourceGroupName] [-MaxMemoryPolicy] [<CommonParameters>]

Detailed Description

The Set-AzureRedisCache cmdlet sets redis cache parameters.

Parameters

-Name <String>

Name of the redis cache to update.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-ResourceGroupName <String>

Name of the resource group for the cache.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-MaxMemoryPolicy <String>

MaxMemoryPolicy used by the redis cache. The default value is null. Possible values are AllKeysLRU, AllKeysRandom, NoEviction, VolatileLRU, VolatileRandom, VolatileTTL.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

Input Type

None

Return Type

Microsoft.Azure.Commands.RedisCache.Models.RedisCacheAttributesWithAccessKeys

Notes

The Set-AzureRedisCache cmdlet is included in the Azure Resource Manager module beginning in module version 0.8.9.

Examples

Example 1: Update Max Memory Policy

This command updates the updatable attributes of a redis cache.

          PS C:\>New-AzureRedisCache -ResourceGroupName mygroup -Name mycache -MaxMemoryPolicy AllKeysLRU

          PrimaryKey        : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
          SecondaryKey      : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
          ResourceGroupName : mygroup
          Id                : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/mygroup/providers/Microsoft.Cache/Redis/mycache
          Location          : North Central US
          Name              : mycache
          Type              : Microsoft.Cache/Redis
          HostName          : mycache.cache.icbbvt.windows-int.net
          Port              : 6379
          ProvisioningState : creating
          SslPort           : 6380
          MaxMemoryPolicy   : AllKeysLRU
          RedisVersion      : 2.8
          Size              : 250MB
          Sku               : Standard

        

Online Version