https://puresourcecode.com/dotnet/azure/azure-functions-with-configuration-and-dependency-injection/
Azure Functions with Configuration and Dependency Injection