Skip to main content

tables

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

Overview

Nametables
TypeResource
Idazure.storage.tables

Fields

The following fields are returned by SELECT queries:

OK -- returned table with the specified table name successfully.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
propertiesobjectTable resource properties. (x-ms-client-name: TableProperties)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectresourceGroupName, accountName, subscriptionId, tableNameGets the table with the specified table name, under the specified account if it exists.
listselectresourceGroupName, accountName, subscriptionIdGets a list of all the tables under the specified storage account
createinsertresourceGroupName, accountName, subscriptionId, tableNameCreates a new table with the specified table name, under the specified account.
updateupdateresourceGroupName, accountName, subscriptionId, tableNameCreates a new table with the specified table name, under the specified account.
deletedeleteresourceGroupName, accountName, subscriptionId, tableNameDeletes 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
accountNamestringThe 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.
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
tableNamestringA 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.

SELECT examples

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

SELECT
id,
name,
properties,
systemData,
type
FROM azure.storage.tables
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND tableName = '{{ tableName }}' -- required
;

INSERT examples

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

INSERT INTO azure.storage.tables (
data__properties,
resourceGroupName,
accountName,
subscriptionId,
tableName
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ subscriptionId }}',
'{{ tableName }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

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

UPDATE azure.storage.tables
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND tableName = '{{ tableName }}' --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.tables
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND tableName = '{{ tableName }}' --required
;