Forrest logo
back to the az tool

az-storage-table:tldr:3add2

az-storage-table: Create a new table in the storage account.
$ az storage table create --account-name ${storage_account_name} --name ${table_name} --fail-on-exist
try on your machine

This command is used to create a table in Azure Storage Table service.

Let’s break down the command:

  • az storage table create: This is the Azure CLI command used to create a table in Azure Storage Table.
  • --account-name ${storage_account_name}: This is an optional parameter that specifies the name of the Azure Storage account where the table will be created. ${storage_account_name} is a placeholder that should be replaced with the actual name of the storage account.
  • --name ${table_name}: This parameter specifies the name of the table to be created in the storage account. ${table_name} is a placeholder that should be replaced with the desired name for the table.
  • --fail-on-exist: This is an optional parameter that specifies what should happen if a table with the same name already exists in the storage account. If this parameter is included and a table with the specified name exists, the command will fail. If this parameter is not included, the command will still succeed but will not create a new table if one with the same name already exists.

In summary, this command creates a table in Azure Storage Table service with the specified name in the specified storage account, and will fail if a table with the same name already exists.

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