In this post we'll walk through how to configure Dependency Injection for Cosmos database SDK v3 when using an Azure Function V2 when using .NET Core 2.2.

The key to using Dependency Injection with Azure Functions V2 is to ensure you're following the Strategy Pattern as a design pattern in your code.

To see how to setup your Azure Function to perform Dependency Injection you can read an article I wrote on the subject.