Forrest logo
back to the az tool

az-storage-table:tldr:07163

az-storage-table: Generate a shared access signature for the table.
$ az storage table generate-sas --account-name ${storage_account_name} --name ${table_name} --permissions ${sas_permissions} --expiry ${expiry_date} --https-only
try on your machine

This command is used to generate a Shared Access Signature (SAS) for an Azure Storage Table.

  • az storage table generate-sas is the command that activates the SAS generation for the storage table.
  • --account-name specifies the name of the Azure Storage account that contains the table.
  • ${storage_account_name} is expected to be replaced with the actual name of the storage account.
  • --name identifies the specific table for which the SAS is being generated.
  • ${table_name} is the placeholder for the name of the table that should be replaced with the real table name.
  • --permissions defines the permissions granted through the SAS. ${sas_permissions} should be replaced with the desired permissions. For example, 'r' for read-only or 'raud' for read, add, update, and delete.
  • --expiry determines the expiration date for the SAS. ${expiry_date} should be substituted with an actual date and time format representing when the SAS should expire.
  • --https-only specifies that the SAS can only be used over HTTPS connections, ensuring data security.

After executing this command with the appropriate values, a SAS token will be generated that can be used for authentication to perform operations on the specified table in the Azure Storage account.

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