I am getting following error when my function app starts and tries to trigger on a queue message:
Microsoft.Azure.WebJobs.Host: Error indexing method ‘Functions.AddOrUpdate’. System.Private.CoreLib: Exception has been thrown by the target of an invocation. Azure.Storage.Queues: Settings must be of the form “name=value”.
Everything works perfectly locally.
My Azure Function is running newest isolated mode.
This is my function:
[Function(nameof(VesselAddOrUpdate))]
public async Task Run([QueueTrigger("update-or-add-vessel", Connection = "QueueConnection")] QueueMessage vesselJson)
{
var vessel = System.Text.Json.JsonSerializer.Deserialize<Vessel>(vesselJson.Body);
Dictionary<string, object> props = new Dictionary<string, object> { { "service", "xx.update.or.add.vessel.job" }, { "vesselName", vessel.VesselName } };
using (_logger.BeginScope(props))
{
var service = new XXServiceAddOrUpdateService(vessel, _repo, _config);
await ServiceExecutor.RunAsync(service, _logger, false);
}
}
Here is my settings:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"Q88NotifyCron": "0 0 3 * * WED",
"Q88Cron": "0 0 7,12,17 * * *",
"QueueConnection__queueServiceUri": "https://xxx.queue.core.windows.net"
}
}
Web Job Nuget:
Any pointers what this could be?