Author : HASSAN MD TAREQ | Updated : 2020/10/09

What is azure webjob?

Console app as webjob

  • Deploy
    • Push console app by Azure DevOps pipeline to specified folder in Azure App Service
      • Triggered (default type): wwwroot\app_data\jobs\triggered\{job name}
      • Continuous: wwwroot\app_data\jobs\continuous\{job name}
    • Deploy directly from Visual Studio
  • Console app should contain Settings.job (contains cron/schedule settings)

Job Settings

Settings.job (To execute job in every 5 minutes)

{"schedule": "0 */6 * * * *"}