Integrate Azure Cosmos DB for MongoDB with Azure services
APPLIES TO: MongoDB
Azure Cosmos DB for MongoDB is a cloud-native offering and can be integrated seamlessly with other Azure services to build enterprise-grade modern applications.
Compute services to run your application
Hosting options and deployment scenarios include several services and tools for Azure. Azure has many options for hosting and many tools to help you move your app from a local or cloud repository to Azure.
Azure App Service
Azure App Service allows you to fully configure and manage the web server without needing to manage the underlying environment.
Samples to get started:
Quickstart: ToDo Application with a Node.js API and Azure Cosmos DB for MongoDB on Azure App Service to get started.
This sample includes everything you need to build, deploy, and monitor an Azure solution using React.js for the Web application, Node.js for the API, Azure Cosmos DB for MongoDB for storage, and Azure Monitor for monitoring and logging.Quickstart: ToDo Application with a C# API and Azure Cosmos DB for MongoDB on Azure App Service
This sample demonstrates how to build an Azure solution using C#, Azure Cosmos DB for MongoDB for storage, and Azure Monitor for monitoring and logging.Quickstart: ToDo Application with a Python API and Azure Cosmos DB for MongoDB on Azure App Service
This sample includes everything you need to build, deploy, and monitor an Azure solution using React.js for the Web application, Python (FastAPI) for the API, Azure Cosmos DB for MongoDB for storage, and Azure Monitor for monitoring and logging.
Azure Functions & Static Web Apps
Azure Functions hosts serverless API endpoints or microservices for event-driven scenarios. Static Web Apps are used to host static websites and single-page applications that can be enhanced with the serverless Azure Functions.
Samples to get started:
Quickstart: ToDo Application with a Node.js API and Azure Cosmos DB for MongoDB on Static Web Apps and Functions
This sample includes everything you need to build, deploy, and monitor an Azure solution using React.js for the Web application, Node.js for the API, Azure Cosmos DB for MongoDB for storage, and Azure Monitor for monitoring and logging.Quickstart: ToDo Application with a Python API and Azure Cosmos DB for MongoDB on Azure App Service
This sample includes everything you need to build, deploy, and monitor an Azure solution using React.js for the Web application, Python (FastAPI) for the API, Azure Cosmos DB for MongoDB for storage, and Azure Monitor for monitoring and logging.
Azure Container Apps
Azure Container Apps provide a fully managed serverless container service for building and deploying modern apps at scale.
Samples to get started:
Quickstart: ToDo Application with a Node.js API and Azure Cosmos DB for MongoDB on Azure Container Apps
This sample includes everything you need to build, deploy, and monitor an Azure solution using React.js for the Web application, Node.js for the API, Azure Cosmos DB for MongoDB for storage, and Azure Monitor for monitoring and logging.Quickstart: ToDo Application with a Python API and Azure Cosmos DB for MongoDB on Azure Container Apps
This sample includes everything you need to build, deploy, and monitor an Azure solution using React.js for the Web application, Python (FastAPI) for the API, Azure Cosmos DB for MongoDB for storage, and Azure Monitor for monitoring and logging.
Azure Virtual Machines
Azure Virtual Machines allow you to have full control on the compute environment running the application. You may also choose to scale from one to thousands of VM instances in minutes with Azure Virtual Machine Scale Sets.
Azure Kubernetes Service (AKS)
Azure Kubernetes Service is a managed Kubernetes service for running containerized applications. You can build and run modern, portable, microservices-based applications, using Kubernetes to orchestrate and manage the availability of the application components.
Read more about how to choose the right compute service on Azure
Enhance functionalities in the application
Azure AI Search
Azure AI Search is fully managed cloud search service that provides auto-complete, geospatial search, filtering and faceting capabilities for a rich user experience. Here's how you can index data from the Azure Cosmos DB for MongoDB account to use with Azure AI Search.
Improve database security
Azure Networking
Azure Networking features allow you to connect and deliver your hybrid and cloud-native applications with low-latency, Zero Trust based networking services -
- Configure the Azure Cosmos DB for MongoDB account to allow access only from a specific subnet of virtual network (VNet)
- Configure IP-based access controls for inbound firewall.
- Configure connectivity to the account via a private endpoint.
Azure Key Vault
Azure Key Vault helps you to securely store and manage application secrets. You can use Azure Key Vault to -
- Secure Azure Cosmos DB for MongoDB account credentials.
- Configure customer-managed keys for your account.
Microsoft Entra ID
Microsoft Entra managed identities eliminate the need for developers to manage credentials. Here's how you can create a managed identity for Azure Cosmos DB accounts.
Next steps
Learn about other key integrations: