< Back

Get-AzureStorageQueueStoredAccessPolicy

Tue Jan 29, 2019 9:26 pm

NAME Get-AzureStorageQueueStoredAccessPolicy



SYNOPSIS

Gets the stored access policy or policies for an Azure storage queue.





SYNTAX

Get-AzureStorageQueueStoredAccessPolicy [-Queue] <String> [[-Policy] <String>] [-Context <IStorageContext>] [<CommonParameters>]





DESCRIPTION

The Get-AzureStorageQueueStoredAccessPolicy cmdlet lists the stored access policy or policies for an Azure storage queue.





PARAMETERS

-Context <IStorageContext>

Specifies the Azure storage context. To obtain a storage context, use the New-AzureStorageContext cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-Policy <String>

Specifies a stored access policy, which includes the permissions for this Shared Access Signature (SAS) token.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Queue <String>

Specifies the Azure storage queue name.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

IStorageContext

Parameter 'Context' accepts value of type 'IStorageContext' from the pipeline



String

Parameter 'Queue' accepts value of type 'String' from the pipeline





OUTPUTS

Microsoft.WindowsAzure.Storage.Queue.SharedAccessQueuePolicy







NOTES









Example 1: Get a stored access policy in the queue



PS C:\\>Get-AzureStorageQueueStoredAccessPolicy -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



PS C:\\>Get-AzureStorageQueueStoredAccessPolicy -Queue "MyQueue"



This command gets all stored access policies in the queue named MyQueue.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... cesspolicy

New-AzureStorageQueueStoredAccessPolicy

Remove-AzureStorageQueueStoredAccessPolicy

Set-AzureStorageQueueStoredAccessPolicy

New-AzureStorageContext