Cosmos DB

Containers

Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers

Control plane
Supported
Data plane
Emulated
API versions
47 25 stable
Ships in
Plugin Microsoft.DocumentDB 2026.11
Plan
Standard and above

Data as of 2026-11-20

API versions

The API versions Locally supports for Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers.

API versionStatusControl planeData plane
2026-07-15 stable Supported Emulated
2026-04-01-preview preview Supported Emulated
2026-03-15 stable Supported Emulated
2025-11-01-preview preview Supported Emulated
2025-10-15 stable Supported Emulated
2025-05-01-preview preview Supported Emulated
2025-04-15 stable Supported Emulated
2024-12-01-preview preview Supported Emulated
2024-11-15 stable Supported Emulated
2024-09-01-preview preview Supported Emulated
2024-08-15 stable Supported Emulated
2024-05-15-preview preview Supported Emulated
2024-05-15 stable Supported Emulated
2024-02-15-preview preview Supported Emulated
2023-11-15-preview preview Supported Emulated
2023-11-15 stable Supported Emulated
2023-09-15-preview preview Supported Emulated
2023-09-15 stable Supported Emulated
2023-04-15 stable Supported Emulated
2023-03-15-preview preview Supported Emulated
2023-03-15 stable Supported Emulated
2023-03-01-preview preview Supported Emulated
2022-11-15-preview preview Supported Emulated
2022-11-15 stable Supported Emulated
2022-08-15-preview preview Supported Emulated
2022-08-15 stable Supported Emulated
2022-05-15-preview preview Supported Emulated
2022-05-15 stable Supported Emulated
2022-02-15-preview preview Supported Emulated
2021-11-15-preview preview Supported Emulated
2021-10-15-preview preview Supported Emulated
2021-10-15 stable Supported Emulated
2021-07-01-preview preview Supported Emulated
2021-06-15 stable Supported Emulated
2021-05-15 stable Supported Emulated
2021-04-15 stable Supported Emulated
2021-04-01-preview preview Supported Emulated
2021-03-15 stable Supported Emulated
2021-03-01-preview preview Supported Emulated
2021-01-15 stable Supported Emulated
2020-09-01 stable Supported Emulated
2020-06-01-preview preview Supported Emulated
2020-04-01 stable Supported Emulated
2020-03-01 stable Supported Emulated
2019-12-12 stable Supported Emulated
2019-08-01-preview preview Supported Emulated
2019-08-01 stable Supported Emulated

Note: This is generated from the latest version of the plugin (2026.11) as of 2026-11-20, and may differ in older versions. We aim to keep this information accurate and up to date; if you find something we're missing, then please let us know.

Nested resource types

The resource types nested under Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers. Click one to see more information.

Features

  • Partition key, hierarchical partition keys, unique keys, time to live and indexing policy
  • Item operations: create, read, replace, upsert and delete, with If-Match optimistic concurrency.
  • Partial document update: set, add, replace, remove, incr and move, with a conditional predicate.
  • Transactional batch, rolled back as a whole on failure.
  • Bulk execution with the .NET SDK's AllowBulkExecution.
  • SQL queries: JOIN, subqueries, aggregates, GROUP BY, DISTINCT, TOP, OFFSET/LIMIT and multi-property ORDER BY, with parameters and continuation tokens.
  • Cross-partition queries
  • Vector search with VectorDistance, using cosine, dot product or euclidean distance.
  • Full-text and hybrid search: FullTextContains, FullTextScore, ORDER BY RANK and RRF.
  • Geospatial queries with the ST_* functions.
  • Change feed: latest version mode, and all versions and deletes mode on accounts with continuous backup.
  • Time to live: expired items are hidden straight away, then removed.
  • Dedicated throughput, manual or autoscale, which the SDKs can read and replace.
  • Request size limit: items over 2 MB are refused with an HTTP 413.
  • Restoring a deleted container with createMode: Restore.
  • Function App triggers and bindings: the change feed drives Cosmos DB triggers in the Function App emulator, and input and output bindings read and write items.

Limitations

Containers

  • A cross-partition query with an aggregate inside a larger expression, or with ORDER BY and GROUP BY together, can return wrong results from the .NET SDK.
  • Custom analyzers in a full-text policy aren't supported at this time.
  • Paging with a continuation token can skip or repeat items if the container is written to between pages at this time.
  • Partitions don't split or merge at this time.
  • ST_AREA isn't supported, and ST_WITHIN and ST_INTERSECTS use planar geometry, so very large shapes can give different results.

Container Throughput Settings

  • Autoscale throughput doesn't scale with load at this time.
  • The 400 RU/s minimum for manual throughput isn't enforced at this time.

Stored Procedures

  • A query inside a stored procedure can't call a user-defined function at this time.
  • Stored procedures have no execution time limit at this time, so isAccepted is always true.

Triggers

  • Pre-triggers can't use getCollection() at this time.

User Defined Functions

  • A user-defined function can't be called from a query inside a stored procedure at this time.

Examples

Runnable examples from the examples library.

Documentation

A local cloud for you and your AI agents.

Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.