Create A DocumentDB Collection And Database


In this blog, I will explain how to create a Document DB NO SQL using Azure portal. So, let’s note what a document DB NOSQL is.

NOSQL is a category of databases which are different from SQL databases. NOSQL is used to refer to data management systems that are not SQL. There may be a number of technologies in the No SQL category, that include document databases, key value stores, column family stores, and graph databases etc.


  • An active Azure subscription.

Create a document DB NO SQL account

Login into your Azure portal.

From the left navigation corner, click New -> Databases -> NOSQL (DocumentDB).

Now, we need to specify the configuration for the DocumentDB account.
In the ID box, we need to provide a name for identifying the DocumentDB .The provided ID value in the text box becomes the host name within the URI. The is appended to the endpoint name as we choose.
In the NoSQL API box, we can select the programming model to use.
  • Document DB - DocumentDB API is available through .NET, Java, Node.js, as well as Ppython.
  • MongoDB - DocumentDB also offers protocol support for MongoDB applications. If we choose the MongoDB option, we can use existing MongoDB SDKs and tools to interact with DocumentDB. Since I have used documentDB, let’s take it in this way.

  • Select the Azure subscription that you need to use for the Document DB. 
  • Select a resource group for the Document DB & Use location for specifying the geographic location.
  • Click Create and check the status of the deployment, check the Notifications hub & in dashboard.
After the Document DB account is created, it is now ready for use with default settings.

Default consistency of Document DB account is set to "Session". We can change the default consistency in the resource menu.

Creating a Document DB collection & database:

  • Click Document DB NoSQL and from the Document DB NoSQL, select the account. 
  • Click add collection in Document DB account for the selected account.

From the add collection, in the Collection Id box, enter the ID for your new collection.
We can then set storage capacity to 10 GB if we need a single partition with throughput levels from 400-10,000 request units/second (RU/s); and we can select the storage capacity to 250 GB if we need a partition collections; and from that, we can manage handling unlimited amount of storage over multiple partitions.
I hope this blog will be useful for creating NOSQL databases.