편집

다음을 통해 공유


Get-AzRedisCacheAccessPolicyAssignment

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

Syntax

Get-AzRedisCacheAccessPolicyAssignment
   [-ResourceGroupName <String>]
   -Name <String>
   [-AccessPolicyAssignmentName <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzRedisCacheAccessPolicyAssignment
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzRedisCacheAccessPolicyAssignment
   -TopLevelResourceObject <RedisCacheAttributes>
   [-AccessPolicyAssignmentName <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

If AccessPolicyAssignmentName parameter provided, Get-AzRedisCacheAccessPolicyAssignment cmdlet gets details about the specified access policy assignment (redis user). If only Name is specified this operation gets all access policy assignments (Redis Users) of the Redis Cache.

Examples

Example 1: Get information of an access policy assignment (redis user)

Get-AzRedisCacheAccessPolicyAssignment -Name "testCache" -AccessPolicyAssignmentName "testAccessPolicyAssignment"

This command gets information on access policy assignment (redis user) named testAccessPolicyAssignment from Redis Cache named testCache

Example 2: Get information of all access policy assignments (redis users)

Get-AzRedisCacheAccessPolicyAssignment -Name "testCache"

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

Parameters

-AccessPolicyAssignmentName

Name of Access Policy Assignment.

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 Assignment

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

PSRedisAccessPolicyAssignment