Triggering the Service Bus queue function locally

To demonstrate the last statement in the preceding section, let us use a timer-triggered function to test the ProcessQueue function that we created in Chapter 5, Integrations and Dependencies, which is triggered by a Service Bus queue message.

As mentioned, a Service Bus message can be simulated in other ways, including using triggering from the Function Core Tools. The following process, however, allows us to execute the actual "real" event flow, rather than debugging with a dummy message.

Creating an access policy for the Service Bus Queue

To write messages to the Service Bus Queue, we first need to create an appropriate access policy. In this case, we will create a policy with only the ...

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.