7

I want to be able to control the name of the Service Bus Queue or Subscription that my Azure Function reads from at run-time.

With WebJobs (which Azure Functions are based on) you could do this by implementing and configuring a custom INameResolver, see: How to have a configuration based queue name for web job processing?

However, with Azure functions I have no access to JobHostConfiguration to wire up this custom resolver.

Can I still use an INameResolver, and if so how?

Janusz Nowak
  • 2,595
  • 1
  • 17
  • 36
Tom Robinson
  • 8,348
  • 9
  • 58
  • 102

1 Answers1

5

Right now you cannot use a custom INameResolver as there is no mechanism for injecting your own services like this into the host. It's being tracked here: https://github.com/Azure/azure-webjobs-sdk-script/issues/1579

brettsam
  • 2,702
  • 1
  • 15
  • 24