The error message "The binding type(s) 'cosmosDBTrigger' are not registered. Please ensure the type is correct and the binding extension is installed." indicates that the Azure Cosmos DB binding extension is not installed. To resolve this issue, you need to install the Azure Cosmos DB extension package to your project. Run the following command in the Terminal window to add the Azure Cosmos DB extension package to your project:
dotnet add package Microsoft.Azure.WebJobs.Extensions.CosmosDB
Make sure to add this package to the correct project if you have multiple projects in your solution.
References: