title: Connection Property does not work in Azure ServiceBus Subscription-triggered Function
body: <p>According to <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus-trigger?tabs=csharp#connections" rel="nofollow noreferrer">the documentation</a>, you can specify a Connection in a ServiceBus-triggered function. The Connection should reference an App Setting by that name that contains a connection string to an Azure ServiceBus Namespace.</p>
  <p>I have an App Setting containing a valid Azure ServiceBus connection string, and the <code>Connection</code> parameter is set to the setting name. However, the function does not fire. It does work locally, or if I use the default setting name &quot;AzureWebJobsServiceBus.&quot; Obviously I don't want to use that name since I may have multiple connections.</p>
  <p>App settings:
  <a href="https://i.stack.imgur.com/dckOp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dckOp.png" alt="App Settings" /></a></p>
  <p>Function code:</p>
  <pre><code>FunctionName(&quot;Test&quot;)]
  public static async Task Run([ServiceBusTrigger(&quot;topicname&quot;, &quot;subscriptionname&quot;, Connection = &quot;AzureWebJobsTestConn&quot;, IsSessionsEnabled = true)]
  </code></pre>
  <p>I've also tried:</p>
  <pre><code>FunctionName(&quot;Test&quot;)]
  public static async Task Run([ServiceBusTrigger(&quot;topicname&quot;, &quot;subscriptionname&quot;, Connection = &quot;TestConn&quot;, IsSessionsEnabled = true)]
  </code></pre>
  <p>I've seen some related questions, but the answer generally given is to make sure to use Application Settings, not some config file - which I am.</p>
  <p>Any help would be appreciated!</p>