LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

az-storage-table

Manage Azure Table Storage tables

TLDR

Create a table
$ az storage table create --name [mytable] --account-name [mystorageaccount]
copy
List all tables
$ az storage table list --account-name [mystorageaccount]
copy
Delete a table
$ az storage table delete --name [mytable] --account-name [mystorageaccount]
copy
Check if table exists
$ az storage table exists --name [mytable] --account-name [mystorageaccount]
copy
Generate a SAS token for a table
$ az storage table generate-sas --name [mytable] --permissions [raud] --expiry [2026-12-31T00:00Z] --account-name [mystorageaccount]
copy
List stored access policies for a table
$ az storage table policy list --table-name [mytable] --account-name [mystorageaccount]
copy

SYNOPSIS

az storage table subcommand [options]

DESCRIPTION

az storage table manages Azure Table Storage tables. Table Storage is a NoSQL key-value store suitable for storing structured, non-relational data. Tables contain entities (rows) with properties (columns).Use az storage entity commands to manage the data within tables.

PARAMETERS

--name -n

Name of the table.
--account-name
Storage account name.
--account-key
Storage account key. Env: AZURESTORAGEKEY.
--auth-mode value
Authentication mode: key (legacy account key) or login (Azure AD credentials).
--permissions
SAS permissions for generate-sas: (r)ead/query, (a)dd, (u)pdate, (d)elete. Combinable, for example raud.
--start-pk / --end-pk / --start-rk / --end-rk
Restrict a table SAS to a partition-key and row-key range.

SUBCOMMANDS

create

Create a table.
delete
Delete a table.
list
List tables in a storage account.
exists
Check if a table exists.
generate-sas
Generate a shared access signature for a table.
policy create / delete / list / show / update
Manage stored access policies for a table.
stats
Retrieve replication statistics for the Table service (requires RA-GRS).

INSTALL

sudo dnf install azure-cli
copy
sudo pacman -S azure-cli
copy
sudo zypper install azure-cli
copy
brew install azure-cli
copy
nix profile install nixpkgs#azure-cli
copy

CAVEATS

Requires Azure CLI and valid storage credentials. Table names must follow Azure naming conventions. Tables cannot be renamed; must delete and recreate.

SEE ALSO

RESOURCES

Copied to clipboard
Kai