title: How do I post a message to a Azure Service Bus from my Azure function?
body: <p>I am playing around with Azure functions and trying to setup an intricate construct of pipes and filters (the pattern). I am using Azure functions for this.</p>
  
  <p>My starting point is a HTTP triggered Azure function. That collects some JSON from the body of the request and should pass this message to a Azure Service Bus.</p>
  
  <p>I must be missing something here (I have done this before in RabbitMQ with console apps) but how do I post a message to a service bus from a HTTP triggered Azure function.</p>
  
  <p>I found several references talking about configuring my function.json (what ever that is - im building in Visual Studio). </p>
  
  <p>How does this input/output (trigger/binding) thing work - im guessing that is the problem here...or??</p>
  
  <p>I have my first Azure function in place and is receiving the data from the HTTP - so far so good. But how to proceed?</p>
  
  <p>** Update **
  Still cant get it to Work. Got this code and it fails with an http500. (it also says i need to see the og - where is that log?)</p>
  
  <pre><code>public static class EI_WooCommerce_Hub
      {
          [FunctionName("EI_WooCommerce_Hub")]
          [return: ServiceBus("eilogging", Connection = "EIIntegrationServiceBusConnection")]
          public async static Task&lt;string&gt; Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = "EIWooCommerceHub/name/")]HttpRequestMessage req, TraceWriter log)
          {
              log.Info("Webhook triggered from: ");            
              return "Hello World to queue";
          }       
      }
  </code></pre>
  
  <p>** Update 2 **
  This seems to be a config problem. In the application settings on the function app I kept getting an authorization error for the servicebus. I added the default "AzureWebJobsServiceBus" setting with the connectionstring, then it worked. It could not pick up my own connection string for some reason.</p>