tldr/pages/common/az-storage-queue.md

22 lines
807 B
Markdown
Raw Normal View History

2022-10-09 05:50:29 +01:00
# az storage queue
> Manage storage queues in Azure.
> Part of `azure-cli`.
> More information: <https://learn.microsoft.com/cli/azure/storage/queue>.
- Create a queue:
`az storage queue create --account-name {{storage_account_name}} --name {{queue_name}} --metadata {{queue_metadata}}`
- Generate a shared access signature for the queue:
`az storage queue generate-sas --account-name {{storage_account_name}} --name {{queue_name}} --permissions {{queue_permissions}} --expiry {{expiry_date}} --https-only`
- List queues in a storage account:
`az storage queue list --prefix {{filter_prefix}} --account-name {{storage_account_name}}`
- Delete the specified queue and any messages it contains:
`az storage queue delete --account-name {{storage_account_name}} --name {{queue_name}} --fail-not-exist`