I'm interested in using WebJobs to replace my existing console application. The console application accepts 1 of 5 parameters using /argument style syntax which I currently run using Windows Scheduler on my VM. Each schedule runs the application with a specific argument. Some jobs run every 5 minutes, others run every 6 hours.
When I upload the ZIP containing my console application and its dependencies, I was expecting to be able to supply a command line argument to the application. This doesn't appear to be the case.
If I create a batch file (called Send-Emails.bat) for example and then create a new WebJob called Send-Emails it appears to run the batch file. This is OK, but it would mean that I need to create 5 different WebJobs (again, not a problem) and upload the ZIP 5 times, each with a different batch file that calls the console with the argument.
This last step seems very inefficient, and will quickly become a maintenance nightmare. How to deploy such a system would create problems as well.
This seems like a basic scenario, and one that I would assume the Azure team designed WebJobs for. Has anyone had any success with this? I'd prefer not to alter my code if at all possible, and calling WebJobs from my web application using the API seems to be less than ideal as well.