Scheduled Azure WebJob deployed via Git results in On Demand Job

后端 未结 3 1798
无人及你
无人及你 2021-02-13 07:02

I have a Git-Enabled ASP.NET WebApp with one associated Azure WebJob. When I deploy this via Visual Studio everything is fine, but this is kinda hard in a Continuous Delivery En

3条回答
  •  一整个雨季
    2021-02-13 07:42

    Indeed, the problem is that the scenario is not yet well supported. Specifically, when publishing via git (or GitHub/Bitbucket), the webjob-publish-settings.json file is ignored.

    One workaround is to publish once using VS just to get the scheduler created, and then use git afterwards.

    Eventually, this scenario will be solved by using Azure Resource Manager templates that define both the WebSite and the scheduler. Technically, this can be done today, but there is not much documentation out there yet.

提交回复
热议问题