title: How to configure a Cosmos Db collection during deployment
body: <p>When deploying a Cosmos Db database in GlobalDocumentDB mode using the Azure <a href="https://docs.microsoft.com/en-us/azure/templates/microsoft.documentdb/databaseaccounts" rel="noreferrer">resource manager template</a> there is no way to configure collections in the database during deployment that I can tell.</p>
  
  <p>During a ARM template deployment is there any way to either (in order of preference)</p>
  
  <ol>
  <li>Configure the collections in a Cosmos Db database directly in a way that I have overlooked.</li>
  <li>Do a series of REST requests from within the template to configure the db.</li>
  <li>Do a single REST request within the template to hit a Azure Function with a HttpTrigger that will configure the database.</li>
  </ol>