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 data storage for this demo. Please check out the MongoDB pricing for the other tiers according your application needs.
We give our SaaS a name and then subscribe.
We then select configure 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.
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 for production environments please be sure to restrict to certain IP ranges.
I will select MongoDB Compass here, but you can also use the MongoShell.
On the next page, you will be provided a connection string which you will use to connect to your cluster.
And finally we have access to our MongoDB cluster, if you have any trouble accessing the cluster, make sure that port 27017 is open and this can be tested 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. Simply type SaaS and you should be able to see your service.