How to configure a Cosmos Db collection during deployment

Viewed 2849

When deploying a Cosmos Db database in GlobalDocumentDB mode using the Azure resource manager template there is no way to configure collections in the database during deployment that I can tell.

During a ARM template deployment is there any way to either (in order of preference)

  1. Configure the collections in a Cosmos Db database directly in a way that I have overlooked.
  2. Do a series of REST requests from within the template to configure the db.
  3. Do a single REST request within the template to hit a Azure Function with a HttpTrigger that will configure the database.
2 Answers
Related