![Forrest logo](/images/logo.png)
az-storage-queue:tldr:b057b
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.