title: Trigger Azure Web Jobs through Webhook url
body: <p>I have an issue in triggering Azure webjobs using Webhook url.</p>
  
  <p>I created a simple 'NoAutomaticTriggerAttribute' Azure web job below is the code</p>
  
  <p>For example:</p>
  
  <pre><code> class Program
  {
      // Please set the following connection strings in app.config for this WebJob to run:
      // AzureWebJobsDashboard and AzureWebJobsStorage
      static void Main()
      {
          var test = ConfigurationManager.ConnectionStrings["AzureWebJobsDashboard"].ConnectionString.ToString();
          var config = new JobHostConfiguration(test);
  
          if (config.IsDevelopment)
          {
              config.UseDevelopmentSettings();
          }
  
          var host = new JobHost(config);
          host.Call(typeof(Functions).GetMethod("ProcessMethod"));
          // The following code ensures that the WebJob will be running continuously
          host.RunAndBlock();
      }
  }
  </code></pre>
  
  <p>Below is the Function class code:</p>
  
  <pre><code> public class Functions
  {
      // This function will get triggered/executed when a new message is written 
      // on an Azure Queue called queue.
  
      [NoAutomaticTriggerAttribute]
      public static void ProcessMethod(TextWriter log)
      {
          log.WriteLine("This is First call from Main Method.");
      }
  }
  </code></pre>
  
  <p>Now when i tried to call the webjob using the webhook url :</p>
  
  <p><a href="https://sample.scm.azurewebsites.net/api/triggeredwebjobs/SampleWebJob2/run" rel="noreferrer">https://sample.scm.azurewebsites.net/api/triggeredwebjobs/SampleWebJob2/run</a></p>
  
  <p>Its giving this response:</p>
  
  <p>"No route registered for '/api/triggeredwebjobs/SampleWebJob2/run'"</p>
  
  <p>There is no details captured in AzureWebJobsDashboard</p>
  
  <p>Let me know if its the correct way to call the Azure webjobs on demand. Is there any setting that im missing here.</p>
  
  <p>Please guide.</p>