Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.9k views
in Technique[技术] by (71.8m points)

azure - 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...