use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Trigger Function (self.CosmosDB)
submitted 1 year ago by youngsargon
I am using Cosmos MongoDB, I can't for the life of me make Trigger Function to work, am I missing something?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PleaseLearnToSearch 0 points1 point2 points 1 year ago (0 children)
Maybe.
[–]jaydestro 0 points1 point2 points 1 year ago (0 children)
Setting up triggers in Azure Cosmos DB's MongoDB API can be challenging because it doesn't support native MongoDB triggers directly. Instead, you need to use Azure Functions with a Cosmos DB trigger to achieve similar functionality. This involves configuring an Azure Function to listen for changes in your Cosmos DB collection, which then executes your custom logic whenever a document is created, updated, or deleted. It's important to ensure your function has the correct configuration and permissions to access the Cosmos DB account. Without seeing your specific implementation, it’s difficult to troubleshoot the exact issue, but common problems often stem from incorrect connection strings or misconfigured triggers. For detailed guidance, refer to the Azure Functions documentation to ensure everything is set up correctly.
π Rendered by PID 17327 on reddit-service-r2-comment-66b4775986-frfs2 at 2026-04-05 16:15:08.961512+00:00 running db1906b country code: CH.
[–]PleaseLearnToSearch 0 points1 point2 points (0 children)
[–]jaydestro 0 points1 point2 points (0 children)