Hi Andreas,
Thanks for the reply, that was very helpful.
I found that to make the generated NServiceBusTriggerFunction
work I had to keep the old “AzureWebJobsServiceBus” environment variable that included Authentication=ManagedIdentity
.
That, in combination with the CustomTokenCredential
you suggested made both the ServiceBus trigger and the injected IFunctionEndpoint
work.
There’s a working example here.
Will the NServiceBus code be enhanced to cope with the new <connection_name>__fullyQualifiedNamespace
configuration value at the same time it updates to Microsoft.Azure.WebJobs.Extensions.ServiceBus
v5?
Thanks,
Ben