You can connect your MongoDB app to an Azure Cosmos DB by using a MongoDB connection string. You can then use an Azure Cosmos DB database as the data store for your MongoDB app.
I would suggest reading here for more details.
Connect a MongoDB application to Azure Cosmos DB
Hope that helps.
Regards,
Oury