Cloud service · Azure · Updated

Table Storage - Azure Table Storage is a managed NoSQL key-attribute store for structured, nonrelational data with a flexible schema.

In short

Table Storage stores entities in tables within an Azure storage account, supporting applications that retrieve and update data primarily through partition and row keys. It suits application metadata, tenant-scoped records, device information, and other datasets that do not require relational joins or automatic secondary indexes.

Cloud Services Hub →

8 key features of Table Storage

01
Flexible entity schema

Store entities with different sets of typed properties in the same table without applying table-wide schema migrations. Enforce required fields and versioning rules in application code.

02
Partition and row-key indexing

Retrieve individual entities efficiently using their PartitionKey and RowKey, or query row-key ranges within a partition. Other properties are not automatically indexed, so model keys around frequent queries.

03
Managed partition distribution

Azure manages the physical placement and balancing of partitions. Distribute requests across partition keys rather than placing all high-volume traffic in a single logical partition.

04
Atomic entity group transactions

Commit related changes atomically when all entities belong to the same table and share a PartitionKey. A transaction supports up to 100 operations with a total payload below 4 MiB, and an entity can appear only once in the transaction.

05
Optimistic concurrency

Use entity ETags for conditional updates and deletes to detect conflicting changes. Handle precondition failures by rereading the entity and reconciling changes rather than blindly retrying the same update.

06
Identity-based and delegated access

Authorize applications with Microsoft Entra ID, managed identities, and Azure table data roles. Use short-lived, scoped SAS tokens for delegated access, including user delegation SAS when the design supports it.

07
Encryption and network isolation

Data is encrypted at rest, and storage network controls can restrict access to the table endpoint. Customer-managed encryption keys for tables require selecting an account-scoped encryption key when the storage account is created.

08
REST API and Azure Tables SDKs

Access entities through authenticated HTTP requests or Azure Tables libraries for languages including .NET, Java, Python, and JavaScript. SDK pagination and retry support simplify implementation, but applications must still bound concurrency and handle partial workflow failures.

Where Table Storage is used

  1. 01
    Tenant-scoped application records

    Store tenant preferences, user profiles, or account metadata using keys aligned with tenant-specific reads. Use separate tables or accounts when tenants need stronger authorization, operational, or encryption isolation than shared partitions provide.

  2. 02
    Device registries and latest-known state

    Maintain device identifiers, configuration properties, and recent status for applications that usually look up a known device. Spread high-volume devices across partition keys and keep large telemetry histories in a store designed for analytical queries.

  3. 03
    Background job status and deduplication

    Track job progress, processing attempts, and completed message identifiers for asynchronous workers. Use deterministic keys and conditional operations to make duplicate message delivery safe.

  4. 04
    Object metadata catalogs

    Store searchable-by-key metadata and blob references separately from documents, images, or other large objects. Design explicit reconciliation because updating a table entity and uploading a blob are not one atomic transaction.

  5. 05
    Precomputed application lookup tables

    Serve routing mappings, configuration records, or denormalized summaries using predictable key-based access. Maintain additional lookup entities explicitly if the application needs to retrieve the same record through multiple identifiers.

How Table Storage is priced

Consumed storage capacity

Pay for stored data using the applicable capacity rates rather than provisioning database compute. Rates depend on region, redundancy, account configuration, and applicable pricing tiers; tables do not use Blob Storage hot, cool, or archive access tiers.

Metered transactions

Requests are charged according to the applicable Table Storage transaction meters. Estimate reads, writes, queries, pagination, and retries; scan-heavy access patterns can increase both request volume and latency.

Transfer and configuration-dependent charges

Applicable outbound data transfer, geo-replication transfer, private endpoints, and monitoring can add to the overall architecture cost. Selecting an account-scoped encryption key for tables uses different capacity and transaction rates, even when Microsoft manages that key.

Services Table Storage works with

A common architecture places an App Service API in front of Table Storage and authenticates the application through a managed identity. The API validates tenant access, constructs partition and row keys, and performs bounded key-based queries. Table-level RBAC can separate tables, but partition-level isolation in a shared table requires application enforcement or constrained delegated access.

For asynchronous processing, Queue Storage carries work items and Azure Functions or another worker updates table entities containing status, checkpoints, and deduplication records. Queue delivery and table updates are separate operations, so use idempotent processing, conditional writes, and explicit recovery paths. Store large inputs and outputs in Blob Storage and keep only their identifiers and relevant metadata in table entities.

Azure Monitor complements these application flows with storage metrics and diagnostic logs. Correlate requests using client request IDs, and capture tenant or workload identifiers in application telemetry to identify hot partitions and uneven usage. For private deployments, configure access to the table-specific private endpoint and ensure the API and workers resolve the endpoint correctly. Separate storage accounts when workloads require independent network boundaries, encryption keys, or capacity management.

Azure Functions

Functions can read and write entities through supported table bindings or the Azure Tables SDK. For example, a queue-triggered function can update a job-status entity after processing a work item. Use deterministic keys and conditional writes so retried invocations do not create duplicate results.

App Service

Web applications hosted on App Service can use the Azure Tables SDK to persist profiles, configuration, or tenant metadata. For example, an API can use the authenticated tenant identifier and record identifier as its lookup keys. Assign the application's managed identity a suitable table data role instead of embedding an account key.

Queue Storage

Queue Storage can carry work notifications while Table Storage maintains durable processing state. For example, a worker can record an order-processing checkpoint keyed by the message's business identifier. Queue operations and table writes are not atomic together, so account for duplicate delivery and failures between the two operations.

Azure Blob Storage

Keep large payloads in blobs and store their identifiers, ownership metadata, and processing status in table entities. For example, a document service can retrieve a metadata entity by tenant and document ID before authorizing a blob download. Use reconciliation or compensating actions to handle orphaned blobs and missing metadata.

Azure Monitor

Use Azure Monitor metrics and configured resource logs to investigate latency, errors, and request patterns. For example, alert on sustained server errors or increased latency and correlate storage requests with worker telemetry. Include client request IDs and tenant identifiers in application logs because shared-table metrics do not provide application-level tenant attribution.

Azure Container Apps

Table Storage can hold application state for Azure Container Apps through the Dapr Azure Table Storage state-store component. A container app can use Dapr's state API to save and retrieve state without implementing Table Storage operations itself.

Azure Data Factory

Table Storage is a supported source and destination for Azure Data Factory Copy activities. A pipeline can filter entities by partition key when reading a table or merge incoming records into an existing table.

Azure DNS

Table Storage private endpoints can use the Azure Private DNS zone `privatelink.table.core.windows.net`. Clients on linked virtual networks can keep using the standard table endpoint hostname while DNS resolves it to the private endpoint's IP address.

Azure ExpressRoute

Table Storage public endpoints can be reached from on-premises networks through ExpressRoute Microsoft peering. For private access, ExpressRoute private peering can connect those networks to a virtual network that hosts a Table Storage private endpoint.

Azure Key Vault

Table Storage can use a customer-managed encryption key held in Azure Key Vault. The storage account must be configured at creation to use the account encryption key for table data.

Alternatives to Table Storage in other clouds

AWS

Amazon DynamoDBAmazon DynamoDB

Amazon DynamoDB and Azure Table Storage are managed NoSQL databases that store flexible-schema records in tables for key-based access. DynamoDB supports secondary indexes and atomic transactions across tables, while Table Storage indexes partition and row keys only and limits atomic transactions to one partition in one table.

Compare fact by fact
Table StorageAmazon DynamoDB
IndexesPartition and row keys onlyPrimary and secondary indexes
Atomic transaction scopeOne partition in one tableAcross tables
Request billingMetered transactionsPer request or provisioned throughput
Record expirationApplication-managed cleanupAutomatic deletion with TTL

What is Table Storage

3 min read

Azure Table Storage stores structured, nonrelational data as entities containing typed properties. Tables do not enforce a fixed schema, so entities in the same table can have different properties. Each entity can contain up to 252 application-defined properties, in addition to its three system properties, and has a maximum size of 1 MiB. Storage capacity is governed by the limits of the containing storage account rather than a provisioned size for each table.

Every entity has a PartitionKey and RowKey, whose combination uniquely identifies it within a table. These string properties form the service's index and are the foundation of query performance. A point read specifying both keys is the most efficient retrieval pattern. A query specifying one partition and a row-key range can efficiently retrieve related records, whereas filtering only on other properties requires scanning entities. Table Storage does not provide automatic secondary indexes, joins, foreign keys, or stored procedures.

Design keys around the application's dominant access patterns, expected request distribution, and transaction boundaries. For a tenant-scoped application, a tenant identifier can be a useful partition key, but a large or busy tenant can create a hot partition. Sharding a tenant across multiple partition keys can distribute load, at the cost of additional queries and narrower transaction boundaries. Row keys sort lexicographically, so encode dates, counters, and composite values consistently when range queries depend on their ordering.

The service supports insert, replace, merge, upsert, delete, and query operations through its REST API and Azure Tables SDKs. Use merge updates when only selected properties should change and replace updates when the supplied entity should replace existing application properties. ETags support optimistic concurrency: submit the expected ETag when an update must fail rather than overwrite a concurrent change. Entity group transactions provide atomic operations within one table and partition, with a maximum of 100 operations and a total payload below 4 MiB.

Queries are paginated and can return continuation tokens even when a page contains fewer results than requested. Applications must continue until no continuation token remains rather than treating a short page as completion. Use bounded concurrency and retry transient failures with exponential backoff. Avoid retrieving entire entities when a projection of selected properties is sufficient, and implement explicit cleanup jobs if records require expiration; Table Storage does not provide automatic per-entity time-to-live deletion.

Prefer Microsoft Entra ID authentication with managed identities and appropriate table data roles instead of distributing storage account keys. Table-level role assignments do not restrict access to individual partitions. When clients need temporary direct access, issue narrowly scoped shared access signatures; user delegation SAS supports delegation without signing tokens with account keys. Use HTTPS, configure network restrictions or a private endpoint for the table service, and verify private DNS resolution from application networks.

Data is encrypted at rest, and durability depends on the storage account's supported redundancy configuration. Monitor latency, request volume, availability, and throttling symptoms alongside application telemetry. Azure Cosmos DB for Table is a separate service that shares the Azure Tables SDK programming model but has different indexing, distribution, limits, and pricing; validate those differences before migrating an application.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.