Azure Web Job Console App With Parameter RRS feed

  • Question

  • I have a console application project and I publish it to Azure Web Jobs. I want to schedule consoleapp.exe with parameters.
    For Example :
    First Schedule: consoleapp.exe ImportProducts
    Second Schedule: consoleapp.exe OrderTransfer

    Is it possible ?

    Friday, April 10, 2015 9:38 AM

All replies

  • This is not possible using the portal scheduling features alone. I have done something similar but needed two web jobs that called the .exe (with parameters) by way of a .bat file.

    Another alternative is to have a single continuous web job that uses a QueueTrigger. This web job will listen on a queue for requests to "ImportProducts" and "OrderTransfer". But then you'd have to schedule the enqueuing of the requests separately using Azure Scheduler with ActionType of "Storage Queue" or something similar.

    • Proposed as answer by KloopDogg Friday, April 10, 2015 7:55 PM
    Friday, April 10, 2015 7:54 PM