title: Launch Azure Worker Role from Queue Trigger
body: <p>I have an Azure hosted MVC Web App where a user can request a report to be generated by pressing a button.  This report is a compute intensive, long-running process that I only want to run at night.  I have experience using Queue Triggered WebJobs to process background tasks; however, this job will require more resources than my Web App Service plan has and I don't want to run this compute process along side my Web App.  My hope is that I can write a queue message for each request and then have something check that queue each night to see if it has any messages.  If it does, create/start a new Worker Role instance of sufficient power/memory to handle the job, process the queue message(s), then shut down/and deallocate the worker to prevent ongoing charges.  </p>
  
  <p>I can't figure out the best way to check the queue before starting the Worker Role and only create/start the Worker if there is work to be done since it will be a largish instance I want to minimize uptime to keep costs down.</p>