Bicep for Azure Cosmos DB

APPLIES TO: NoSQL

This article shows Bicep samples for API for NoSQL accounts. You can also find Bicep samples for Cassandra, Gremlin, MongoDB, and Table APIs.

API for NoSQL

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

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.