Forrest logo
back to the az tool

az-storage-entity:tldr:e84ed

az-storage-entity: Insert an entity into a table.
$ az storage entity insert --entity ${space_separated_key_value_pairs} --table-name ${table_name} --account-name ${storage_account_name} --account-key ${storage_account_key}
try on your machine

This command is used to insert a new entity (row) into an Azure Storage table. Here is a breakdown of the command:

  • az storage entity insert: This is the Azure CLI command for inserting an entity into a storage table.

  • --entity ${space_separated_key_value_pairs}: This parameter specifies the entity data to be inserted. It should be provided as key-value pairs separated by a space. For example, --entity PartitionKey=user001 RowKey=task001 Description="Complete task"

  • --table-name ${table_name}: This parameter specifies the name of the Azure Storage table where the entity will be inserted. You need to replace ${table_name} with the actual name of the table.

  • --account-name ${storage_account_name}: This parameter specifies the name of the storage account where the table is located. You need to replace ${storage_account_name} with the actual name of the storage account.

  • --account-key ${storage_account_key}: This parameter specifies the access key for the storage account. You need to replace ${storage_account_key} with the actual access key.

Overall, this command is used to insert a new entity into an Azure Storage table using the Azure CLI.

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