Cosmos DB Create in Azure - microsoft-campus-community/workshop-shopping-list-bot GitHub Wiki

For the shopping list, storage is needed to persist the items in a list. Because the shopping list does not require any complex database schema, a NoSQL document-based Mongo database is used.

Create Cosmos DB in Azure

  1. Login to the Azure portal
  2. Click on '+ Create a resource' Screenshot of Azure Portal with a red circle around Button with label '+ Create a resource'.
  3. You want to create a Cosmos DB So, type 'Cosmos DB' into the Azure Marketplace search box and click on it. Screenshot of Azure Marketplace with 'Cosmos' entered in the search box and red arrow pointing to the 'Azure Cosmos DB' suggestion.
  4. After clicking on the 'Azure Cosmos DB' search suggestion, you should see the marketplace page for Azure Cosmos DB. Here click on 'Create'. Screenshot of Azure Marketplace Page for 'Azure Cosmos DB'. A red circle around the  'Create' button.
  5. For the API select Azure Cosmos DB for MongoDB API.
  6. Specify the Azure Cosmos DB resource. Screenshot of Cosmos DB resource create a page in Azure with all the information that are required filled out.
    1. Select your Azure Subscription.
    2. Select the resource group you created previously with the name 'shopping-list-bot-workshop-rg'. If you do not have a resource group yet, create a new one. In Azure, resource groups are containers to group related resources. So, it is best to create one resource group for all resources used in this workshop. Then you can later manage or delete all resources at once.
    3. Enter an 'Account Name', for example, shopping-list-db.
  7. Select a region close to you.
  8. Leave all other fields as they are. Click on 'Review + create'.
  9. Once your configuration is validated, click 'Create'.

NEXT: Azure Functions Basics