Get In Touch With Document DB From Azure Cosmos DB

Introduction

As we are all excited with the new features that Microsoft has come up with at Build 2017, here is the one wrapped up with the database world on Azure. Here, by this writing, I will be sharing a few pieces of my work on Azure Cosmos DB.

What is Cosmos DB 

Microsoft has come up with a new source of help for developers who are working on the database stream with a combination of globally distributed, multi-model environments which will help us to create a document, query it, work with graph databases, and add key and values towards it. Cosmos DB helps us in distribution and scaling across various data center regions and it helps our client in surviving with the nearest data center region of theirs.

Let's start working on Azure Cosmos DB.

Requirements

  1. Azure Subscription

Note - You can get free Azure subscription for a period of one month by clicking here.

Steps to be followed

Login to your Azure portal account using the below link. 

Link – www.portal.azure.com

Click on New - Databases - Azure Cosmos DB.

Azure

Now, here in this blade, you have to fill your ID for Cosmos DB along with API, Subscription, Resource Group, and Location details.

So, as said earlier, your Cosmos DB is a multi-model database service which is the reason why we specify what API and data model we are going to use overhere. We have multiple features in Cosmos DB that Azure supports, such as- Gremlin (graph), Mongo DB, Document DB and Table. Let's work with Document DB over here.

Now, let's add a few points to understand what Document DB is.

This Document DB is a wrapper of NO-SQL database and it helps in storing, accessing, and managing the data which are in semi-structured format. The main operations that we perform at Document DB is of CRUD (Create, Retrieve, Update and Delete), Key ID’s, Editing and accessing the database, Getting in touch with search engines, and using Azure Search in DocumentDB etc.

Give ID,

API – Document DB

Subscription – Select the subscription that you have

Resource Group (which you use for pooling your services) – name your Resource Group with some name which you can use for tagging into other services.

Location – the location of your data center where you want to host this Cosmos DB.

Click on "Create".

Azure

Now, your Cosmos DB – Document DB gets deployed on your Azure account.

Azure

Once the deployment is completed, you can find multi-platform ways for which Azure Cosmos DB supports you with a free hands-on Azure Document DB. You have multiple platforms here, as .NET, .NET Core, Xamarin, Java, Node.js and Python. You can also create a sample basic application using the same over here.

Azure

And now, the rest are just similar to what you worked on with your Document DB before. You can add collections, you can work on queries with the help of your Query Explorer, explore with Document Explorer, etc.

Helpful Links

Check this link to work with DocumentDB at full sketch.

Stay tuned for more writings of mine to learn about the new updates of Microsoft Azure Portal.

Up Next
    Ebook Download
    View all
    Learn
    View all