Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebJob cannot be added from portal if deployment form source control is configured

Today we experienced the following message in Azure Portal

WebJob cannot be added from portal if deployment form source control is configured.

Error Azure Portal

We assume that this is a new feature hence the spelling is incorrect: 'deployment form source control' should be 'deployment from source control'.

I have no clue where to set a setting that solved this.

It has to be somewhere in DevOps we assume.

like image 259
Daniel Avatar asked Sep 17 '19 10:09

Daniel


1 Answers

We solved it by not disconnecting a pipeline.

We solved it by implementing a seperate WebJob Build/Release Pipeline.

Here are the steps that worked for us:

In Azure Portal

  • Create a virtual application in your app service enter image description here

In DevOps

  • In your build pipeline enter image description here Important Notice: add the following Argument: --output $(build.artifactstagingdirectory) to the build step.

  • In your release pipeline enter image description here

This deploys the WebJob to the correct directory. In our case: $(System.DefaultWorkingDirectory)/_ms-reporting-webjob-dev-CI/drop

Having a look at the Kudo Console in our App Service the file location for our WebJob is: enter image description here

like image 90
Daniel Avatar answered Sep 20 '22 21:09

Daniel