Azure Resource Manager templates for Azure Cosmos DB

APPLIES TO: SQL API

This article only shows Azure Resource Manager template examples for Core (SQL) API accounts. You can also find template examples for Cassandra, Gremlin, MongoDB, and Table APIs.

Core (SQL) API

Template Description
Create an Azure Cosmos account, database, container with autoscale throughput This template creates a Core (SQL) API account in two regions, a database and container with autoscale throughput.
Create an Azure Cosmos account, database, container with analytical store This template creates a Core (SQL) API account in one region with a container configured with Analytical TTL enabled and option to use manual or autoscale throughput.
Create an Azure Cosmos account, database, container with standard (manual) throughput This template creates a Core (SQL) API account in two regions, a database and container with standard throughput.
Create an Azure Cosmos account, database and container with a stored procedure, trigger and UDF This template creates a Core (SQL) API account in two regions with a stored procedure, trigger and UDF for a container.
Create an Azure Cosmos account with Azure AD identity, Role Definitions and Role Assignment This template creates a Core (SQL) API account with Azure AD identity, Role Definitions and Role Assignment on a Service Principal.
Create a private endpoint for an existing Azure Cosmos account This template creates a private endpoint for an existing Azure Cosmos Core (SQL) API account in an existing virtual network.
Create a free-tier Azure Cosmos account This template creates an Azure Cosmos DB Core (SQL) API account on free-tier.

See Azure Resource Manager reference for Azure Cosmos DB page for the reference documentation.

Next steps

Trying to do capacity planning for a migration to Azure Cosmos DB? You can use information about your existing database cluster for capacity planning.