How can we improve Microsoft Azure Functions?

Azure Cosmos Bindings and Document API... when will this be supported?

At this time, the Azure Cosmos DB trigger, input bindings, and output bindings work with SQL API and Graph API accounts only.

https://docs.microsoft.com/en-us/azure/azure-functions/functions-integrate-store-unstructured-data-cosmosdb?tabs=csharp

Trying to do a simple add/read document from Azure Portal CSharp Script and getting lost ...
Looks like it works, creates DB & Collection but no documents.
Then I see the blurb at top of document saying only SQL and Graph is supported (from 10 Jan 2018). Not sure what's current...

Please advise

...this is cool functionality (but I can't get it to work...)

1 vote
Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)

We’ll send you updates on this idea

Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

What you are asking for is supported so closing, but hoping I can help.

CosmosDB documents can be exposed through many API surfaces – SQL API, Gremlin, Mongo, Cassandra. Today our trigger (run this code when a document is added) only works if you select the SQL API – because we rely on the change feed from CosmosDB which only works for accounts on the SQL API. However you still add and create “documents” with the SQL API.

You should be able to create a document from a CSharp script using the following sample: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2#output---examples

-
Jeff

0 comments

Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base