Skip to main content

table

Creates, updates, deletes, gets or lists a table resource.

Overview

Nametable
TypeResource
Idazure.storage.table

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
signedIdentifiersarrayList of stored access policies specified on the table.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tableNamestringTable name under the specified account.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, table_name, subscription_idGets the table with the specified table name, under the specified account if it exists.
listselectresource_group_name, account_name, subscription_idGets a list of all the tables under the specified storage account.
createinsertresource_group_name, account_name, table_name, subscription_idCreates a new table with the specified table name, under the specified account.
updateupdateresource_group_name, account_name, table_name, subscription_idCreates a new table with the specified table name, under the specified account.
deletedeleteresource_group_name, account_name, table_name, subscription_idDeletes the table with the specified table name, under the specified account if it exists.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_namestringThe name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
table_namestringA table name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric character. Required.

SELECT examples

Gets the table with the specified table name, under the specified account if it exists.

SELECT
id,
name,
signedIdentifiers,
systemData,
tableName,
type
FROM azure.storage.table
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND table_name = '{{ table_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new table with the specified table name, under the specified account.

INSERT INTO azure.storage.table (
properties,
resource_group_name,
account_name,
table_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ table_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Creates a new table with the specified table name, under the specified account.

UPDATE azure.storage.table
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND table_name = '{{ table_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the table with the specified table name, under the specified account if it exists.

DELETE FROM azure.storage.table
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND table_name = '{{ table_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;