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)
- Configure the collections in a Cosmos Db database directly in a way that I have overlooked.
- Do a series of REST requests from within the template to configure the db.
- Do a single REST request within the template to hit a Azure Function with a HttpTrigger that will configure the database.