Below is my C# code in Visual Studio 2017:
[FunctionName("MyFunction")]
public static void Run([ServiceBusTrigger("myqueue", Connection = "ServiceBus")]string myQueueItem, ILogger log)
{
log.LogInformation($"C# ServiceBus queue trigger function processed message: {myQueueItem}");
}
After getting comments from friends below, found that Azure Function v2 only support 1 language. Then I changed to use Visual Studio Code instead of Visual Studio 2017 (without using C# code)
Now, you need to use Single language in one Function app.
Previously a function app could have more than one language functions. But now in Function v2 we are forced to use a single language.