Create Azure Cosmos with SQL API and multiple containers

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Deploy To Azure Deploy To Azure US Gov Visualize

This template will create Azure Cosmos account for Core (SQL) API, a database and multiple containers with name and paritionKey as specified. Once deployed you can keep adding containers, by adding the name and partitionKey to the containers array.

Below are the parameters which can be user configured in the parameters file:

  • accountName: Enter the database name for the account.
  • databaseName: Enter the database name for the account.
  • containers: List of containers specifying the name and the partitionKey for each of them

Tags: Microsoft.DocumentDB/databaseAccounts, Microsoft.DocumentDB/databaseAccounts/apis/databases, Microsoft.DocumentDb/databaseAccounts/apis/databases/containers