Sitecore XP1 On Azure - Create Mongo DB Databases For xDB Features

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

  • Analyticsdb
  • tracking_live
  • tracking_history
  • tracking_contact

Please follow the same instructions to create the rest of the three databases.

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

Azure

Click Create new button and you will be taken to 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.

    Azure

  • Choose sandbox in the Standard Line section, as shown below.

    Azure

  • Provide the database name. I have provided anayticsdb. You need to repeat the process for the rest of the three databases.

    Azure

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

Azure

Once you create the database, you need to create, assign and use to access the databases. Click on the database to navigate to the page given below.

Azure

Choose Users tab and click Add database user button, which opens the popup, as shown below.

Azure

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

Azure

Once you create all the four databases, your home page would look something, as shown below.

Azure

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 ARM template later.