Get-AzRedisCacheAccessPolicy
Get the detailed information about Access Policy(s) of the Redis Cache
Syntax
NormalParameterSet
Get-AzRedisCacheAccessPolicy
-Name <String>
[-ResourceGroupName <String>]
[-AccessPolicyName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ResourceIdParameterSet
Get-AzRedisCacheAccessPolicy
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
CacheObjectParameterSet
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
Get-AzRedisCacheAccessPolicy -Name "testCache" -AccessPolicyName "testAccessPolicy"
This command gets information on access policy named testAccessPolicy from Redis Cache named testCache
Get-AzRedisCacheAccessPolicy -Name "testCache"
This command gets information on all access policies from Redis Cache named testCache.
Parameters
-AccessPolicyName
Name of Access Policy.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
NormalParameterSet
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
CacheObjectParameterSet
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
Name of Redis Cache.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
NormalParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ResourceGroupName
Name of resource group in which cache exists.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
NormalParameterSet
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ResourceId
ARM Id of Redis Cache Access Policy
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResourceIdParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-TopLevelResourceObject
Object of type RedisCacheAttributes
Parameter properties
Parameter sets
CacheObjectParameterSet
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs