How to configure a Cosmos Db collection during deployment

You should be able to use these Templates.

  • Containers:
    https://docs.microsoft.com/en-us/azure/templates/microsoft.documentdb/2015-04-08/databaseaccounts/apis/databases/containers
  • Collections:
    https://docs.microsoft.com/en-us/azure/templates/microsoft.documentdb/2015-04-08/databaseaccounts/apis/databases/collections
  • All Microsoft.DocumentDB Resource Types:
    https://docs.microsoft.com/en-us/azure/templates/microsoft.documentdb/allversions

These pages were published on 05/01/2019 & are for API version 2015-04-08.