Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Azure Cosmos DB for MongoDB (vCore) extension supports trigger, input, and output bindings for Azure Cosmos DB for MongoDB (vCore).
Important
The Azure Cosmos DB for MongoDB (vCore) extension is currently in preview.
At this time, only .NET apps that use the in-process model are supported.
Using the Azure Cosmos DB for MongoDB (vCore) extension, you can build functions that can:
Action | Trigger/binding type |
---|---|
Execute on changes to a collection | Azure Cosmos DB for MongoDB (vCore) trigger |
Write documents to the database | Azure Cosmos DB for MongoDB (vCore) output binding |
Query the database | Azure Cosmos DB for MongoDB (vCore) input binding |
Considerations for the Azure Cosmos DB for MongoDB (vCore) extension:
- Only C# apps that run in-process with the host are currently supported in preview.
- The Azure Cosmos DB for MongoDB (vCore) binding extension doesn't currently support Microsoft Entra authentication and managed identities.
- Your app must be using version 4.x of the Azure Functions runtime.
Install extension
Add the extension to your .NET project for an in-process app by installing this preview NuGet package:
Microsoft.Azure.WebJobs.Extensions.AzureCosmosDb.Mongo
Note
Don't try to install this package in a .NET isolated worker process app. There will be errors and the app project won't build. To learn how to create a .NET app that uses the in-process model, see Develop C# class library functions using Azure Functions.
Related articles
- What is Azure Cosmos DB for MongoDB (vCore architecture)?
- Change streams in Azure Cosmos DB’s API for MongoDB
- Azure Cosmos DB for MongoDB (vCore) trigger for Azure Functions
- Azure Cosmos DB for MongoDB (vCore) input binding for Azure Functions
- Azure Cosmos DB for MongoDB (vCore) output binding for Azure Functions