title: Create a Scheduled Azure WebJob with PowerShell
body: <p>I am trying to create an Azure WebJob to send a <code>BrokeredMessage</code> to an Azure ServiceBus Topic, the actual act of creating and sending the message is trivial however I have been unable to find a way to automate the creation of the Scheduled WebJob.</p>
  
  <p>The automated workflow should work as follows:</p>
  
  <ol>
  <li>Create a new Azure Website <strong>[Done]</strong></li>
  <li>Create a new triggered Azure WebJob uploading a PS1 file <strong>[Done]</strong></li>
  <li>Create a new Azure Scheduler Job Collection <strong>[Proven Concept]</strong></li>
  <li>Create a new Azure Scheduler Job that triggers the WebJob</li>
  </ol>
  
  <p>The Azure Management Portal provides a nice UI for this functionality, which under the covers creates an Azure WebJob in the selected WebSite, an Azure Scheduler Job Collection and an Azure Scheduler Job:</p>
  
  <p><img src="https://i.stack.imgur.com/RdLJk.png" alt="Screenshot: Step 2 of New Scheduled Web Job task in Azure Management Portal"></p>
  
  <p>There doesn't appear to be an analogous mechanism for creating a scheduled Azure WebJob with the Azure Service Management PowerShell Module. It is certainly possible to create new <a href="http://msdn.microsoft.com/en-us/library/dn722506.aspx" rel="noreferrer">WebJobs</a>, <a href="http://msdn.microsoft.com/en-us/library/dn722471.aspx" rel="noreferrer">Azure Scheduler Collections</a> and <a href="http://msdn.microsoft.com/en-us/library/dn722492.aspx" rel="noreferrer">Jobs</a> - however I have no idea what URL or Storage Queue the Azure Scheduler is posting to to schedule Azure WebJobs.</p>