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

Categories

0 votes
2.0k 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 Reply

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...