devopsazure-pipelines-release-pipelineazure-webjobs-triggered

Deploy a triggered webjob


I use Azure DevOps Release pipeline that creates (automatically) and deploys a webjob using the "Azure App Service deploy" task. The webjob type is created as "continous". I need the job to be created as "triggered".


Solution

  • You can define the webjob type in WebJobs Folder Structure. Use .net webjob as example, you can DotNetCoreCLI@2 to publish the webjobs with structure App_Data/jobs/triggered for triggered type, or App_Data/jobs/continuous for continuous type. Then create the zip file for release.

    enter image description here

    In Azure App Service deploy task, specify the zip file. enter image description here

    After deployment, check the webjob on azure, the job type is triggered.

    enter image description here

    You can follow the link for the detail steps. You can also find this info in official doc: enter image description here