Get-​Azure​Managed​Cache​Access​Key

Gets the access keys for an Azure Cache.

Syntax

Get-AzureManagedCacheAccessKey
   -Name <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

The Get-AzureManagedCacheAccessKey cmdlet gets the primary and secondary access keys for an Azure Cache. You can use these keys to allow clients, such as web applications, to access to your Azure Cache. Typically, you use the primary key, but use the secondary key to avoid delays while the primary key is being regenerated. To get new access keys, use the New-AzureManagedCacheAccessKey cmdlet. An Azure Cache is a secure, dedicated cache that provides extremely fast access to data. This distributed, in-memory, scalable solution enables you to build highly scalable and responsive applications. For more information about Azure Cache, see Azure Cache (http://azure.microsoft.com/en-us/services/cache/).

Examples

Example 1: Get the access key for an Azure Cache

PS C:\>Get-AzureManagedCacheAccessKey -Name "ContosoCache"

This command gets the access key for the Azure Cache named ContosoCache.

Required Parameters

-Name

Specifies the name of the Azure Cache. This parameter value is case-sensitive. Wildcard characters are not permitted.

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

Optional Parameters

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Azure.Management.ManagedCache.Models.CachingKeysResponse