Get-AzStorageQueue
列出存储队列。
语法
QueueName (默认值)
Get-AzStorageQueue
[[-Name] <String>]
[-Context <IStorageContext>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
QueuePrefix
Get-AzStorageQueue
-Prefix <String>
[-Context <IStorageContext>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzStorageQueue cmdlet 列出了与 Azure 存储帐户关联的存储队列。
示例
示例 1:列出所有 Azure 存储队列
Get-AzStorageQueue
此命令获取当前存储帐户的所有存储队列的列表。
示例 2:使用通配符列出 Azure 存储队列
Get-AzStorageQueue -Name queue*
此命令使用通配符获取名称以队列开头的存储队列列表。
示例 3:使用队列名称前缀列出 Azure 存储队列
Get-AzStorageQueue -Prefix "queue"
此示例使用 Prefix 参数获取名称以队列开头的存储队列列表。
参数
-Context
指定 Azure 存储上下文。 可以使用 New-AzStorageContext cmdlet 创建它。
参数属性
| 类型: | IStorageContext |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
参数属性
| 类型: | IAzureContextContainer |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | AzureRmContext, AzureCredential |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Name
指定名称。 如果未指定任何名称,cmdlet 将获取所有队列的列表。 如果指定了完整或部分名称,则 cmdlet 将获取与名称模式匹配的所有队列。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | True |
| 不显示: | False |
| 别名: | N, 队列 |
参数集
QueueName
| Position: | 0 |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-Prefix
指定要获取的队列名称中使用的前缀。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
QueuePrefix
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。