'Missing property direction in Azure HTTP functions

newbie here to code and especially with Azure. I hit a rock with bellow placed Azure functions code. When I press F5 to load it goes to an error saying "Missing property direction"

I'm wondering whether this is a missing extension error or something else, the code is from the video course and the tutor still has not responded to the message, if anyone can help? P.S. there are two function files with the same error:

processOrderCosmos, processOrderStorage

enter image description here



Solution 1:[1]

If the Azure Functions is on C# Class Library, the direction property will not be defined in function.json.

In fact, it will get direction according to the .dll file generated when you compiled the Azure Function.

As Anand Sowmithiran said, direction:in is required in function.json when you use trigger in the declaration part of the C# Azure Function.

This function.json file will be in debug or release folder of the Azure Functions Solution.

Refer here for more information on function.json entries and keep the track of this similar issue recorded in GitHub Issues Repo which is in open state.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 HariKrishnaRajoli-MT