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 managing my function apps through Visual Studio and source control is through Azure Dev Ops. I have the repos configured in the function apps. When the functions deploy to azure, the function.json in azure is missing the "direction" binding property. I'd expect the CosmoDB output binding below to be assigned "direction: out." I'm getting an error in the "Integration" tab of the function: "The following bindings are missing the required direction property and may have been placed incorrectly: messagesOut. Please update the bindings in your functions.json file." Of course I can't do this change manually unless I build the function within the console, which I'm not looking to do.
I'm managing my function apps through Visual Studio and source control is through Azure Dev Ops. I have the repos configured in the function apps. When the functions deploy to azure, the function.json in azure is missing the "direction" binding property. I'd expect the CosmoDB output binding below to be assigned "direction: out." I'm getting an error in the "Integration" tab of the function: "The following bindings are missing the required direction property and may have been placed incorrectly: messagesOut. Please update the bindings in your functions.json file." Of course I can't do this change manually unless I build the function within the console, which I'm not looking to do.
[FunctionName("MapForStorage")]
public static async Task Run(
[EventHubTrigger("test", Connection = "EventsHubConnection")] EventData[] events,
[CosmosDB(databaseName: "test", containerName: "messages", Connection = "CosmosDbConnection")]
IAsyncCollector messagesOut,
ILogger log)
{ }
From function.json in azure:
"generatedBy": "Microsoft.NET.Sdk.Functions.Generator-4.1.1",
"configurationSource": "attributes",
"bindings": [
{
"type": "eventHubTrigger",
"connection": "EventsHubConnection",
"eventHubName": "test",
"name": "events"
},
{
"type": "cosmosDB",
"connection": "CosmosDbConnection",
"databaseName": "test",
"containerName": "messages",
"createIfNotExists": false,
"name": "messagesOut"
}
],
The text was updated successfully, but these errors were encountered: