I\'m creating a function app in Azure and want to use a queue trigger. I know how to configure the queue name at design time, e.g:
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"
}
}