You can add bindings in the Azure portal. Create a new Function App (one that isn't in read-only mode) to get started. Now, follow these steps:
- Create a new function.
- Pick the Azure Service Bus Queue trigger.
- Install the extension if you have to.
- Pick a name for your function or leave it as the default.
- Select a Service Bus connection or create a new one; you should still have the Service Bus from the previous example.
- Pick a new queue name so that it doesn't interfere with our previous example (unless you don't have that anymore).
- When your function has been created, add return myQueueItem; to the code:
using System;using System.Threading.Tasks;public static string Run(string myQueueItem, ILogger log){ log.LogInformation($"C# ...