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/Azure-Samples/azure-sql-db-session-recommender is a good alternative to AzureFunction-CosmosDB-RBAC