How to integrate Microsoft Azure with MongoDB?

A step-by-step tutorial about how to integrate popular NoSQL database with cloud compluting service by Microsoft
17 August 2017   2761

What is Microsoft Azure?

Microsoft Azure (formerly Windows Azure) is a cloud computing service created by Microsoft for building, testing, deploying, and managing applications and services through a global network of Microsoft-managed data centers. It provides software as a service (SAAS), platform as a service and infrastructure as a service and supports many different programming languages, tools and frameworks, including both Microsoft-specific and third-party software and systems.

What is MongoDB?

MongoDB (from humongous) is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. MongoDB is developed by MongoDB Inc. and is free and open-source, published under a combination of the GNU Affero General Public License and the Apache License.

How to combine Microsoft Azure and MongoDB?

As announced at MongoDB World ‘17, MongoDB Atlas, the database-as-a-service provided by the creators of MongoDB, is now available on the three major public cloud providers: Amazon Web Services, Google Cloud Platform and Microsoft Azure. 

Thru this tutorial, you will be guided thru these steps:

  • Set up your development environment
  • Create an Azure function in Visual Studio
  • Write MongoDB CRUD queries
  • Connect the Azure function to MongoDB Atlas
  • Test the Azure function locally
  • Deploy the Azure function to Microsoft Azure
  • Configure and test the Azure function running on Microsoft Azure

Field Level Encryptoion to be Available at MongoDB

Field level encryption provides access to the database for several specified users at once and helps to follow GDPR rules
21 June 2019   912

MongoDB version 4.2 received support for field-level data encryption (FLE). A special driver on the client side of MongoDB is responsible for it. To read the data in the database, you need to access either the client or the encryption keys.

When we founded MongoDB, we wanted to give developers an easier way to work with data - wherever it lived in the stack. To be able to provide great new features that will make them more productive so they can spend less time wrestling with data and more time building great applications is extremely gratifying. Most importantly, these features work and feel like the tools they are already used to so they will experience a vastly improved database experience with a short learning curve.

Eliot Horowitz 

CTO and co-founder, MongoDB

So, if the database is still in public access, an outsider will not be able to read it.

As the MongoDB developers say, field level encryption provides access to the database for several specified users at once. In addition, it helps to comply to the GDPR, in particular, the “right to be forgotten” - in order to destroy all information related to the user, it is enough to destroy his personal key. After this, the data will not be used.