You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm migrating some functions created in portal templates (.csx) to Azure Functions projects in the tooling.
It's working well so far, only problem I'm facing is already captured in #40.
One thing I have noticed is when I declare an input binding to an Azure DocumentDB the generated function.json file isn't matching the equivalent on the portal function for the direction property.
I.e. if I have e.g. a ServiceBus triggered function, then the binding generates with direction: "in" as expected. But a DocumentDB binding is always generating as direction: "out". Whereas via the portal I get either in or out depending on what I selected.
Note - this doesn't seem to be causing me an issue so far, as I'm getting the desired input from the DocumentDB, and can also use the binding with ICollector to add new documents. Just wanted to flag it in case that wasn't expected behaviour.
The text was updated successfully, but these errors were encountered:
lindydonna
changed the title
Generated function.json for function with DocumentDB input bindings
Incorrect binding direction in generated function.json for DocumentDB input
May 15, 2017
@juzkuz Yes, we have some bugs around binding direction. The root cause is this issue: Azure/azure-functions-host#1507. We will fix this issue before RTM for sure, and hopefully sooner than that.
I'm migrating some functions created in portal templates (.csx) to Azure Functions projects in the tooling.
It's working well so far, only problem I'm facing is already captured in #40.
One thing I have noticed is when I declare an input binding to an Azure DocumentDB the generated
function.json
file isn't matching the equivalent on the portal function for the direction property.I.e. if I have e.g. a ServiceBus triggered function, then the binding generates with direction: "in" as expected. But a DocumentDB binding is always generating as direction: "out". Whereas via the portal I get either in or out depending on what I selected.
Note - this doesn't seem to be causing me an issue so far, as I'm getting the desired input from the DocumentDB, and can also use the binding with ICollector to add new documents. Just wanted to flag it in case that wasn't expected behaviour.
The text was updated successfully, but these errors were encountered: