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".
Deploy a triggered webjob
156 Views Asked by Xile At
3
There are 3 best solutions below
0
On
To change your Azure DevOps Release pipeline in order to create and deploy a "triggered" WebJob instead of a "continuous" one, you need to adjust the configuration in your pipeline.
Edit the "Azure App Service deploy" task within your pipeline and specify the WebJob type as "triggered". This can be done by adding an App Setting or modifying the deployment script.
Ensure the settings.job file in your deployment package (if using a .zip file) indicates "type": "triggered". Also, check your build process to make sure the WebJob package is correctly configured for a triggered job.

You can define the webjob type in
WebJobs Folder Structure. Use .net webjob as example, you canDotNetCoreCLI@2to publish the webjobs with structureApp_Data/jobs/triggeredfortriggeredtype, orApp_Data/jobs/continuousforcontinuoustype. Then create the zip file for release.In
Azure App Service deploytask, specify the zip file.After deployment, check the webjob on azure, the job type is
triggered.You can follow the link for the detail steps. You can also find this info in official doc: