Exercise: Create Azure Cosmos DB resources by using the Azure portal

In this exercise you learn how to perform the following actions in the Azure portal:

  • Create an Azure Cosmos DB account
  • Add a database and a container
  • Add data to your database
  • Clean up resources

Prerequisites

  • An Azure account with an active subscription. If you don’t already have one, you can sign up for a free trial at https://azure.com/free.

Create an Azure Cosmos DB account

  1. Sign-in to the Azure portal.
  2. From the Azure portal navigation pane, select + Create a resource.
  3. Search for Azure Cosmos DB, then select Create/Azure Cosmos DB to get started.
  4. On the Which API best suits your workload? page, select Create in the Azure Cosmos DB for NoSQL box.
  5. In the Create Azure Cosmos DB Account – Azure Cosmos DB for NoSQL page, enter the basic settings for the new Azure Cosmos DB account.
    • Subscription: Select the subscription you want to use.
    • Resource Group: Select Create new, then enter az204-cosmos-rg.
    • Account Name: Enter a unique name to identify your Azure Cosmos account. The name can only contain lowercase letters, numbers, and the hyphen (-) character. It must be between 3-31 characters in length.
    • Availability Zones: Select Disable.
    • Location: Use the location that is closest to your users to give them the fastest access to the data.
    • Capacity mode: Select Serverless.
  6. Select Review + create.
  7. Review the account settings, and then select Create. It takes a few minutes to create the account. Wait for the portal page to display Your deployment is complete.
  8. Select Go to resource to go to the Azure Cosmos DB account page.

Applicant Tracking System Malaysia