Get-​Azure​Rm​Redis​Cache​Key

Gets the access keys for a Redis Cache.

Syntax

Get-AzureRmRedisCacheKey
   -Name <String>
   -ResourceGroupName <String>
   [<CommonParameters>]

Description

The Get-AzureRmRedisCacheKey cmdlet gets the access keys for an Azure Redis Cache.

Examples

Example 1: Get the access keys for a Redis Cache

PS C:\>Get-AzureRmRedisCacheKey -ResourceGroupName "MyResourceGroup" -Name "MyCacheKey"
PrimaryKey        : pJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=
SecondaryKey      : sJ+jruGKPHDKsEC8kmoybobH3TZx2njBR3ipEsquZFo=

This command gets the access keys named MyCacheKey.

Required Parameters

-Name

Specifies the name of a Redis Cache.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group that contains the Redis Cache.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

None

You can pipe input to this cmdlet by property name, but not by value.

Outputs

Microsoft.Azure.Management.Redis.Models.RedisAccessKeys

This cmdlet returns primary and secondary access keys for a Redis Cache.