How To Configure Queue Name for Queue Trigger In Azure Function App How To Configure Queue Name for Queue Trigger In Azure Function App azure azure

How To Configure Queue Name for Queue Trigger In Azure Function App


Could you not just reference the queue name as a setting (using the %settingName% syntax) for your App Function? Then in each function app you deploy have change the setting to the required queue name.

[FunctionName("MyTestFunction")]public static void Run([QueueTrigger("%MyQueueName%", Connection = "testdelete")]string myQueueItem, TraceWriter log)

And specify the setting in local.settings.json for running locally

{  "Values: {     "MyQueueName": "myqueue-items"   }}