Forrest logo
back to the az tool

az-storage-queue:tldr:b057b

az-storage-queue: 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
try on your machine

This command is used to generate a Shared Access Signature (SAS) token for a storage queue in Microsoft Azure.

Here is the breakdown of the command:

  • az storage queue generate-sas: This is the Azure CLI command to generate a SAS token for a storage queue.

  • --account-name ${storage_account_name}: This specifies the name of the storage account where the queue is located. ${storage_account_name} is a placeholder for the actual name of the storage account.

  • --name ${queue_name}: This specifies the name of the queue for which the SAS token is being generated. ${queue_name} is a placeholder for the actual name of the queue.

  • --permissions ${queue_permissions}: This specifies the permissions granted to the SAS token. ${queue_permissions} is a placeholder for the actual permissions, which can be a combination of "r" (read), "a" (add messages), "u" (update messages), "p" (process messages), and "d" (delete messages).

  • --expiry ${expiry_date}: This specifies the expiration date and time for the SAS token. ${expiry_date} is a placeholder for the actual expiration date and time, in UTC format.

  • --https-only: This flag indicates that the SAS token can only be used over HTTPS (secure connection).

By running this command with the appropriate values for the placeholders, you will receive a SAS token that can be used to authorize access to the specified storage queue for the specified permissions until the specified expiration date.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool