An Azure Function written in C# that connects to CosmosDB using RBAC, plus the supporting infrastructure (Function, Storage, KeyVault, RBAC setup, App Insights) all written in bicep.
Why do you think that https://github.com/dapr/dapr is a good alternative to AzureFunction-CosmosDB-RBAC