Pages - Menu

Monday, July 10, 2017

Azure Cosmos DB: Create New Cosmos DB

Cosmos DB is latest evolution of Document DB. Microsoft announced a new service known as Cosmos DB and moved Document DB as a subset of it. Azure Cosmos DB allows you to implement/use Key-value, graph and  document data in one service at global scale without worrying about schema or index management.

To access or create a Cosmos DB, we need Azure Portal subscription. You can create a free account for 30 days. You will receive $200 free credit for 30 days with your free account to use the Portal services.

Once you are done with the subscription, follow the below steps to create the Cosmos DB.

1. Sign in to the Azure portal. After sign in your Azure Dashboard will look like this.

Azure Portal Dashboard, Azure Portal, Azure Dashboard

2. In the Left Pane, click New, click Databases and then click Azure Cosmos DB, or can click the Azure Cosmos DB Link from the left pane directly.

Azure Portal Dashboard, Azure Portal, Azure Dashboard

3. On the New Account blade, provide the configuration that you want for your Cosmos DB account. Complete the fields on the New Account blade, using the screenshot and details provided below and click Create button to create the account.

Azure Portal Dashboard, Azure Portal, Azure Dashboard


Field Name
Suggested value
Description
ID
Unique value
A unique name that identifies your Azure Cosmos DB account. The string documents.azure.com is appended to the ID you provide to create your URI, so use a unique but identifiable ID. The ID can contain only lowercase letters, numbers, and the hyphen (-) character, and it must contain from 3 through 50 characters.
API
Based on your requirement
You can choose one of four programming models: Gremlin (graph), MongoDB, SQL (DocumentDB), and Table (key-value).
Subscription
Your subscription
The Azure subscription that you want to use for your Azure Cosmos DB account.
Resource Group
The same value as ID
The new resource-group name for your account. For simplicity, you can use the same name as your ID.
Location
The region closest to your users
The geographic location in which to host your Azure Cosmos DB account. Choose the location that's closest to your users to give them the fastest access to the data.
4. On the top toolbar, Click Notifications to monitor the deployments process.

Azure Portal Dashboard, Azure Portal, Azure Dashboard

After few seconds you will be able to see the notification for the deployment succeeded. Once deployment is succeeded, Click on Cosmos DB from left pane, you can find the database created by you without collection(table).

Later Articles will explain how to create and import data into Azure Cosmos DB and

No comments:

Post a Comment