How to Deploy Azure Webjobs with Project SDK - Stack Overflow

admin2025-04-21  2

Is there a simple solution to create the webapp Azure who host AsureWebJobs via a csproj file for use Azure DevOps WebPublish to deploy ?

Before migration to SDK Project. VisualStutio handled this scenario via two json files webjobs-list.json :

{
   "$schema": ".json",
   "WebJobs": [
   {
      "filePath": "../MyWebJob/MyWebJob.csproj"
   }
}

And on the WebJobProject webjob-publish-settings.json:

{
   "$schema": ".json",
   "webJobName": "MyWebJob",
   "runMode": "Triggered"
}

With this simple two files I got the correct structure for WebPublish:

bin\app_data\jobs\trigerred\MyWebJob

*Unfortunately this functunality was abandoned with SDK *

转载请注明原文地址:http://anycun.com/QandA/1745227986a90491.html