Bearbeiten

Freigeben über


Get-AzStorageQueue

Lists storage queues.

Syntax

Get-AzStorageQueue
   [[-Name] <String>]
   [-Context <IStorageContext>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzStorageQueue
   -Prefix <String>
   [-Context <IStorageContext>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzStorageQueue cmdlet lists storage queues associated with an Azure Storage account.

Examples

Example 1: List all Azure Storage queues

Get-AzStorageQueue

This command gets a list of all storage queues for the current Storage account.

Example 2: List Azure Storage queues using a wildcard character

Get-AzStorageQueue -Name queue*

This command uses a wildcard character to get a list of storage queues whose name starts with queue.

Example 3: List Azure Storage queues using queue name prefix

Get-AzStorageQueue -Prefix "queue"

This example uses the Prefix parameter to get a list of storage queues whose name starts with queue.

Parameters

-Context

Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet.

Type:IStorageContext
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:AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies a name. If no name is specified, the cmdlet gets a list of all the queues. If a full or partial name is specified, the cmdlet gets all queues that match the name pattern.

Type:String
Aliases:N, Queue
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:True

-Prefix

Specifies a prefix used in the name of the queues you want to get.

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

Inputs

String

IStorageContext

Outputs

AzureStorageQueue