Version Information
Azure Cosmos DB supports MongoDB v4.2, or MongoDB v5.0 for vCore clusters. These versions don't support all the newer features and functionality in the versions of MongoDB available on MongoDB Atlas.
Tip
MongoDB Version History
To learn more about the features available in each version of MongoDB, see MongoDB Evolved - Version History.
Compatibility
As of October 2023, Azure Cosmos DB is about 32 percent compatible with the MongoDB API.
On Azure Cosmos DB for MongoDB v4.2, the following MongoDB v4.2 features are available in a limited capacity or are not supported at all:
Features: Text indexes, 2d indexes, hashed indexes, case-insensitive indexes, sparse indexes
Aggregation Stages:
$collStats
,$bucket
,$bucketAuto
,$currentOp
,$indexStats
,$listLocalSessions
,$listSessions
,$lookup
To learn more about Azure Cosmos DB's compatibility with MongoDB v4.2, see Microsoft's Azure Cosmos DB for MongoDB (4.2 server version): Supported features and syntax documentation.
For the most current compatibility status between Azure Cosmos DB and MongoDB, see the Is Cosmos DB Compatible with MongoDB Atlas? website.
Support
MongoDB doesn't offer commercial support for Azure Cosmos DB. For help with this product, contact Azure Support.