如果配置了部署表单源控制,则无法从门户添加 WebJob [英] WebJob cannot be added from portal if deployment form source control is configured

查看:21
本文介绍了如果配置了部署表单源控制,则无法从门户添加 WebJob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我们在 Azure 门户中遇到了以下消息

Today we experienced the following message in Azure Portal

如果配置了部署表单源控制,则无法从门户添加 WebJob.

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

我们假设这是一个功能,因此拼写不正确:'deployment form source control'应该是'deployment from source控制".

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.

它必须在我们假设的 DevOps 中的某个地方.

It has to be somewhere in DevOps we assume.

推荐答案

我们通过断开管道来解决它.

We solved it by not disconnecting a pipeline.

我们通过实施单独的 WebJob 构建/发布管道解决了这个问题.

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

以下是对我们有用的步骤:

Here are the steps that worked for us:

在 Azure 门户中

  • 在您的应用服务中创建一个虚拟应用

在 DevOps 中

  • 在您的构建管道中重要提示:在构建步骤中添加以下参数:--output $(build.artifactstagingdirectory).

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

在您的发布管道中

这会将 WebJob 部署到正确的目录.在我们的例子中:$(System.DefaultWorkingDirectory)/_ms-reporting-webjob-dev-CI/drop

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

查看我们应用服务中的 Kudo 控制台,我们的 WebJob 的文件位置是:

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

这篇关于如果配置了部署表单源控制,则无法从门户添加 WebJob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆