Get-AzStorageQueueStoredAccessPolicy
Gets the stored access policy or policies for an Azure storage queue.
Syntax
Default (Default)
Get-AzStorageQueueStoredAccessPolicy
[-Queue] <String>
[[-Policy] <String>]
[-Context <IStorageContext>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzStorageQueueStoredAccessPolicy cmdlet lists the stored access policy or policies for an Azure storage queue.
Examples
Example 1: Get a stored access policy in the queue
Get-AzStorageQueueStoredAccessPolicy -Queue "MyQueue" -Policy "Policy12"
This command gets the access policy named Policy12 in the storage queue named MyQueue.
Example 2: Get all stored access policies in the queue
Get-AzStorageQueueStoredAccessPolicy -Queue "MyQueue"
This command gets all stored access policies in the queue named MyQueue.
Parameters
-Context
Specifies the Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet.
Parameter properties
Type: | IStorageContext |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
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: | 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 |
-Policy
Specifies a stored access policy, which includes the permissions for this Shared Access Signature (SAS) token.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Queue
Specifies the Azure storage queue name.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | N, Name |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
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.