Cosmos DB

Stored Procedures

Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures

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/storedProcedures.

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.

Features

  • Execution: stored procedures run in a JavaScript runtime, inside a transaction on their partition.
  • Item operations and queries from within a stored procedure.
  • JavaScript query API: filter, map, pluck, sortBy, flatten, unwind and chain().

Limitations

  • 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.

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.