azureazure-webjobsazure-webjobs-triggered

Can Azure WebJob consist only of console app or should be built only using JobHost for running on demand?


I'm building a job to sync some Azure AD data. It should be running every hour. For that purpose I'm thinking if I need to add JobHost implementation or it is enough to have just a ConsoleApp with settings.job file having schedule and added as a job?

Thank you


Solution

  • The answer is yes.

    You can create console app and build it, then you can include the generated .exe file / other .dll files into a .zip file. Then upload the .zip file to azure webjob.

    For Supported file types, refer here.

    For create a scheduled webjob, please refer here. And a screenshot on how to create a scheduled webjobs:

    enter image description here