CosmosDB Trigger Azure Function
Get specified field value… Note: Make sure you installed the Microsoft.Azure.WebJobs.Extensions.CosmosDB package. Created a CosmosDB connection string (Get string value from Azure Portal). Created a container called “leases” or set CreateLeaseCollectionIfNotExists =true.