title: Azure WebJobs SDK ServiceBus connection string 'AzureWebJobsAzureSBConnection' is missing or empty
body: <p>I created an Azure Function App in Visual Studio 2015. The App has a trigger for service bus queues. The app works perfectly when I run it locally. It is able to read the data from the Service Bus queue (configured via a variable named AzureSBConnection) and log it in my database. </p>
  
  <p>But it gives me the following error when deployed in Azure:</p>
  
  <blockquote>
    <p>Function ($ServiceBusQueueTriggerFunction) Error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.ServiceBusQueueTriggerFunction'. Microsoft.Azure.WebJobs.ServiceBus: Microsoft Azure WebJobs SDK ServiceBus connection string 'AzureWebJobsAzureSBConnection' is missing or empty.</p>
  </blockquote>
  
  <p>Note that my connection is called AzureSBConnection and not AzureWebJobsAzureSBConnection. Also, the connection works locally. And finally, the deployed file looks exactly like the local file.</p>
  
  <p>The Visual Studio structure looks like the following:</p>
  
  <p><a href="https://i.stack.imgur.com/BEGfn.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/BEGfn.jpg" alt="Visual Studio Structure"></a></p>
  
  <p>The function.json file has a bunch of settings as shown below:</p>
  
  <p><a href="https://i.stack.imgur.com/dt9Tk.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/dt9Tk.jpg" alt="FUnction.json"></a></p>
  
  <p>Then in the Appsettings.json file, I have the following:</p>
  
  <p><a href="https://i.stack.imgur.com/rFaeL.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/rFaeL.jpg" alt="App Settings"></a></p>
  
  <p>For deploying, I FTPed the files to the D:\home\site\wwwroot location for my Function App in Azure. The final structure in Kudu looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/a48Ig.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/a48Ig.jpg" alt="wwwroot"></a></p>
  
  <p>And if I go inside my function folder:</p>
  
  <p><a href="https://i.stack.imgur.com/1Ale0.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/1Ale0.jpg" alt="enter image description here"></a></p>
  
  <p>Here is the deployed function.json:</p>
  
  <p><a href="https://i.stack.imgur.com/qJIRe.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/qJIRe.jpg" alt="Deployed Function.json"></a></p>
  
  <p>And here is the deployed appsettings:</p>
  
  <p><a href="https://i.stack.imgur.com/yT0Fc.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/yT0Fc.jpg" alt="Deployed app settings"></a></p>
  
  <p>The deployed json files are exactly the same as the local files. But the deployed version is erroring out because of the missing AzureWebJobsAzureSBConnection. What am I doing wrong? </p>