Creating Azure Cosmos DB Account

  1. Home
  2. Creating Azure Cosmos DB Account

Go back to DP-200 Tutorials

In this tutorial, we will learn and discuss creating an Azure Cosmos DB account.

Creating an Azure Cosmos account

If anyhow you already have an Azure Cosmos DB SQL API account or if you’re using the Azure Cosmos DB emulator.

  • Firstly, from the Azure portal menu or the Home page, select Create a resource.
  • Secondly, on the New page, search for and select Azure Cosmos DB.
  • Thirdly, on the Azure Cosmos DB page, select Create.
  • Fourthly, on the Create Azure Cosmos DB Account page, enter the basic settings for the new Azure Cosmos account.
Setting: Subscription

Value: Subscription name

Description: In this, select the Azure subscription that you want to use for this Azure Cosmos account.

Setting: Resource Group

Value: Resource group name

Description: In this, select a resource group, or select Create new. Then, fill in the unique name for the new resource group.

Setting: Account Name

Value: A unique name

Description: Here, enter a name for identifying your Azure Cosmos account. Because documents.azure.com is appended to the name that you provide for creating your URI, use a unique name. However, the name can only contain lowercase letters, numbers, and the hyphen (-) character. It must be between 3-44 characters in length.

DP-200 practice tests
Setting: API

Value: The type of account to create

Description: In this, select Core (SQL) for creating a document database and query by using SQL syntax. However, the API determines the type of account to create. Further, Azure Cosmos DB provides five APIs that include Core (SQL) and MongoDB for document data, Gremlin for graph data, Azure Table, and Cassandra. 

Setting: Capacity mode

Value: Provisioned throughput or Serverless

Description: Here, select Provisioned throughput for creating an account in provisioned throughput mode. After that, select Serverless for creating an account in serverless mode.

Setting: Apply Free Tier Discount

Value: Apply or Do not apply

Description: Using Azure Cosmos DB free tier, you will get the first 400 RU/s and 5 GB of storage for free in an account.

Setting: Location

Value: The region closest to your users

Description: In this, select a geographic location to host your Azure Cosmos DB account. Then, use the location that is closest to your users to give them the fastest access to the data.

Setting: Account Type

Value: Production or Non-Production

Description: In this, select Production if the account will be used for a production workload. Then, select Non-Production if the account will be used for non-production, e.g. development, testing, QA, or staging. However, this is an Azure resource tag setting that tunes the Portal experience but does not affect the underlying Azure Cosmos DB account. So, you can change this value anytime.

  • In this next step, select Review + create. However, you can skip the Network and Tags sections.
  • After that, review the account settings. Then, select Create. However, it takes a few minutes to create the account. So just wait for the portal page to display deployment is complete.
  • Lastly, select Go to resource to go to the Azure Cosmos DB account page.

After this, go to the Cosmos DB account page, and select Keys. Then, copy the values to use in the web application you create next.

DP-200 Online course creating azure cosmos db account concept

Reference: Microsoft Documentation

Go back to DP-200 Tutorials

Menu