Sitecore XP1 on Azure – Step4 – Create Mongo dB databases for xDB features

This article is a Companion article. Please have a look at the Main article Sitecore XP1 on Azure using Azure App Service.

Create an account with www.mlab.com and create the following 4 databases.

  • Analyticsdb
  • tracking_live
  • tracking_history
  • tracking_contact

In this article, we will discuss about the step-by-step process of creating the analyticsdb. Please following the same instructions for creating the rest of the three databases.

Let’s start the process by clicking on the Create new button shown below.

1_CreateNew
Advertisements

Clicking on the Create new button, you will be taken to the Create new deployment step where you choose the following.

  • Choose Amazon web services as your Cloud Provider and Single-node option in the Plan as shown below.2_CloudProvider
  • Choose “sandbox” in the Standard Line section as shown below.3_StandardLine
  • Provide the database name. I have provided ‘anayticsdb’. You need to repeat the process for the rest of the three databases.4_Createbutton
Advertisements

Once you provide all the details, click on the Create new MongoDB deployment button. After a few seconds, the database will be created as shown below.

5_Dbsuccessfullycreated

Once you create the database, you need to create and assign and user for accessing the databases. Click on the database to navigate to the following page.

6_DBDetailsPage

Choose Users tab and click on the Add database user button which opens the following popup.

7_Addnewuserpopup

Please provide the username and password and click on Create button to create the user. As shown below the user is created and assigned successfully.

8_UserCreated

Once you create all the four databases, your home page would look something like this.

9_homepage

After successfully creating all the 4 databases, you need to collect the connection strings of all those databases as shown below.

  • mongodb://muser:mypassword@ds113650.mlab.com:13650/analyticsdb
  • mongodb://muser:mypassword@ds113660.mlab.com:13660/tracking_live
  • mongodb://muser:mypassword@ds113680.mlab.com:13680/tracking_history
  • mongodb://muser:mypassword@ds113670.mlab.com:13670/tracking_contact

We will be using these connections in the ARM template later.

Do you like this article? If you want to get more updates about these kind of articles, you can join my Learning Groups

WhatsApp

Telegram

Advertisements
Advertisements
Advertisements

2 comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s