Terraform samples for Azure Cosmos DB for NoSQL

APPLIES TO: NoSQL

This article shows Terraform samples for NoSQL accounts.

API for NoSQL

Sample Description
Create an Azure Cosmos account, database, container with autoscale throughput Create an API for NoSQL account in two regions, a database and container with autoscale throughput.
Create an Azure Cosmos account, database, container with analytical store Create an 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 account, database, container with standard (manual) throughput Create an API for NoSQL 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 Create an API for NoSQL 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 Create an API for NoSQL account with Azure AD identity, Role Definitions and Role Assignment on a Service Principal.
Create a free-tier Azure Cosmos account Create an Azure Cosmos DB API 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.