Step 2 – Creating a Cosmos DB account and a collection

Our Azure Function processes the order, finds the products, and updates the inventory collection in Cosmos DB. To create a Cosmos DB account, you need to do the following:

  1. Create a Cosmos DB account named shipanywhere:
  1. Create a collection named Products:
  1. Similarly, create another database called Sales and a collection called Orders under that, as shown:

Get Serverless Integration Design Patterns with Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.