title: Refer Topic and Subscription name from Configuration in an Azure Function with Service Bus Trigger
body: <p>I have an Azure Service Bus with Service Bus Topic trigger. My function looks something like this</p>
  
  <pre><code>[FunctionName("SbListener")]
          public static async Task Run(
              [ServiceBusTrigger("test-topic", "test-sub-1", Connection = "ServiceBus")]string message, 
              [Inject("Microsoft.EventStore.Functions", true)] IWebNotificationManagerFactory webNotificationManagerFactory,
              [Inject("Microsoft.EventStore.Functions", true)] ILogger logger)
          { ... }
  </code></pre>
  
  <p>The configuration for my Service Bus is in the local.settings.json file.</p>
  
  <pre><code>"ConnectionStrings": {
      "ServiceBus": "Endpoint=sb://&lt;my-sb&gt;.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=&lt;my-key&gt;"
  }
  </code></pre>
  
  <p>What  I am looking for is that I want to refer the topic names from the configuration file as well, rather than hard-coding them in the <code>ServiceBusTrigger</code>. The problem is that in case I change the subscription name then I would have to re-deploy Function code (I want to avoid this at all cost).</p>