MongoDB Atlas is a Software as a Service offering in Microsoft Azure and Database as a Service offering through the official MongoDB company.

It provides your non-relational database cluster through a series of replica sets that provide high availability of your data in the cloud. You can work with the cluster through the Mongo shell or with MongoDB Compass (GUI Option). If you would like to check out my previous article on using the Mongo shell, please click here.

To get started, search the Azure Market place for the MongoDB service.

We then select the Free tier, which provides us 512 MB of data storage for this demo. Please check out the MongoDB pricing for the other tiers according to your application needs.

We give our SaaS a name and then subscribe.

We then select to configure an account, which takes us to our database as a service provider MongoDB to configure our cluster owner account.
So the major point here is that Azure provides only the Infrastructure (Servers), and MongoDB provides the software (Atlas portal) and manages the virtual machines on which our clusters sit in Azure.

Click on configure account.

After submitting, we shall receive an email giving us the authority to activate our cluster.

When we are done, we shall then login to cloud.mongodb.com to create and run our free cluster. The whole point of creating this service in Azure is for subscription billing purposes. But never mind, we're on the free tier.

To connect to our newly provisioned MongoDB cluster, Click on the connect button.

Next is to add your IP address range. For this article, I will select any range since this is for test purposes, but please be sure to restrict to certain IP ranges for production environments.

Create the master database user name and password

I will select MongoDB Compass here, but you can also use MongoShell.
On the next page, you're shown a connection string that you will use to connect to your cluster.

Insert the connection string here

Finally, we have access to our MongoDB cluster. If you have any trouble accessing the cluster, make sure that port 27017 is open, and you can test this by using either telnet to the cluster or by trying to browse to this site from behind your firewall. (http://portquiz.net:27017/). If it's successful, you should be able to get something similar to what's shown below.

Back in Azure, to access our MongoDB SaaS. Type SaaS and you should be able to see your service.