In this article, we will learn about the Azure Cosmos DB. So let's learn about Azure Cosmos DB step by step.
You need a valid Azure subscription either free or paid to create any service in the Azure, I hope you have a valid subscription.
What is Azure Cosmos DB?
Step 1: Login To Azure Portal
Navigate to the portal.azure.com using a browser and login into the portal with valid credentials, as shown in the following image.
After a successful authentication, the page will be redirected to the Azure portal default dashboard page as shown in the following image.
Step 2: Create the Azure Cosmos DB
Find the create resource option which can be found left top side of the portal as shown into the following image or follow any other option which you may know to create the resource (service) in the Azure portal. Search for the Azure Cosmos DB as shown in the following image.
As shown in the preceding image, click on the create button, it will show the following screen.
Provide the required details as shown in the preceding image
Choose the available Azure subscription which you want to use for creating the service from the drop down list.
Choose an existing resource group or create a new resource group which you may want to use.
Provide the unique name for the Azure Cosmos database account which creates the universal unique URI by appending the Cosmos database service URL.
Azure Cosmos database provides the five API's which decide what type of data is stored into the cosmos DB. The following are the API's.
- SQL API
- Cassandra API
- Gremlin API
- Table API
- MongoDB API
Choose the deployment location for Azure Cosmos database from the given list. It will always be better to choose the location which is close to your customer's location.
The capacity mode decides the processing capacity for your database which are as
- Provisioned throughput
The database operation cost also differs depending on the selected capacity mode.
Apply Free Tier Discount
You can decide whether to apply or not to apply the free tier discount. If you apply the free tier discount, you will get the first 400 RU/s and 5 GB of storage for free in an account.
The Azure Cosmos database allows users to choose the following two account types.
If your application is running in the production environment, then choose the Production account type; otherwise, choose the non-production account type. This is only the azure resource tag which does not impact on any cost-related things on your Cosmos database account.