Get-AzRedisCacheAccessPolicy

Get the detailed information about Access Policy(s) of the Redis Cache

Syntax

Get-AzRedisCacheAccessPolicy
   [-ResourceGroupName <String>]
   -Name <String>
   [-AccessPolicyName <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzRedisCacheAccessPolicy
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzRedisCacheAccessPolicy
   -TopLevelResourceObject <RedisCacheAttributes>
   [-AccessPolicyName <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

If AccessPolicyName parameter provided, Get-AzRedisCacheAccessPolicy cmdlet gets details about the specified access policy. If only Name is specified this operation gets all access policies of the Redis Cache.

Examples

Example 1: Get information of an access policy

Get-AzRedisCacheAccessPolicy -Name "testCache" -AccessPolicyName "testAccessPolicy"

This command gets information on access policy named testAccessPolicy from Redis Cache named testCache

Example 2: Get information of all access policies

Get-AzRedisCacheAccessPolicy -Name "testCache"

This command gets information on all access policies from Redis Cache named testCache.

Parameters

-AccessPolicyName

Name of Access Policy.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of Redis Cache.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

Name of resource group in which cache exists.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ResourceId

ARM Id of Redis Cache Access Policy

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-TopLevelResourceObject

Object of type RedisCacheAttributes

Type:RedisCacheAttributes
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Outputs

PSRedisAccessPolicy