Getting Started with Azure Cosmos DB Account Creation

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 Account

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.

Azure Cosmos DB Account

Click Create button.

Azure Cosmos DB Account

Select Azure Cosmos DB for the NOSQL option in the Create an Azure Cosmos DB account.

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.

Azure Cosmos DB Account

Click the Review + Create button.

Azure Cosmos DB Account

You will get the Validation Success message which is appeared on the screen.

Azure Cosmos DB Account

Click Create button.

Deployment started initialized in a minute or two this became successful.

Azure Cosmos DB Account

Click the Go to Resource button.

Click the Data Explorer option on the left-hand side of the menu.

Azure Cosmos DB Account

In the Data Explorer window, click the New Container option.

Azure Cosmos DB Account

Type Database id as employees.

Choose Autoscale as the Database throughput option.

Azure Cosmos DB Account

Choose Database Max RU/s as 1000.

Type Container id as person and Indexing type as Automatic.

Azure Cosmos DB Account

Type the Partition key as /employeeId and leave the remaining fields.

Azure Cosmos DB Account

Click the Ok button.

Azure Cosmos DB Account

Now you can see in the Data Explorer window employees as databases and persons as containers.

Azure Cosmos DB Account

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!!