Introduction
In this article, I will showcase the step-by-step quick guide implementation of the Azure Cosmos DB Account Creation service and how to create and deploy the service in the Microsoft Azure cloud platform.
Azure Cosmos DB Service
Azure Cosmos DB is a multi-modal and globally distributed database service with high availability and low latency. It supports Multiple-API like Table, Cassandra, NoSQL, MongoDB, Core SQL, and Gremlin.
It stores the data in the JSON format.
Azure Cosmos DB Storage Account Hierarchy
Azure Cosmos DB Storage Account consists of several databases.
Each database contains multiple containers.
Each Container consists of several items stored.
Steps to Create Azure Cosmos DB Account
Sign in to the Azure portal at https://portal.azure.com/
In the search bar, type Azure Cosmos DB.
Click Create button.
Select Azure Cosmos DB for the NOSQL option in the Create an Azure Cosmos DB account.
In the Basics tab, first, choose the subscription and type the Resource group name as testRG.
Type the Account name as retailaccount and choose the location as US West US.
Choose capacity mode as Provisioned throughput option.
Choose to Apply in the Apply Free Tier Discount.
Click the Review + Create button.
You will get the Validation Success message which is appeared on the screen.
Click Create button.
Deployment started initialized in a minute or two this became successful.
Click the Go to Resource button.
Click the Data Explorer option on the left-hand side of the menu.
In the Data Explorer window, click the New Container option.
Type Database id as employees.
Choose Autoscale as the Database throughput option.
Choose Database Max RU/s as 1000.
Type Container id as person and Indexing type as Automatic.
Type the Partition key as /employeeId and leave the remaining fields.
Click the Ok button.
Now you can see in the Data Explorer window employees as databases and persons as containers.
Summary
In this article, we successfully created and deployed an Azure Cosmos DB account. Most organizations started using Azure Cosmos DB because of is globally distributed and very easy to store in the JSON format.
Hope you have enjoyed reading this article!!