العلامة غير مُراقَبة من قِبل Microsoft.
Supported layout: Placing the job directly under /opt/example/App_Data/jobs/... inside the image without mirroring it under /home is generally not supported out of the box by the WebJobs executor. Azure App Service relies on persistent storage mounted at /home for runtime file discovery and execution (e.g., /home/site/wwwroot/App_Data/jobs/triggered/sample-job/). You should package or deploy your job files under /home/site/wwwroot/App_Data/jobs/triggered/.
Required settings:
webJobsEnabled: Must be set to true to enable the WebJobs runtime.
WEBSITE_SKIP_RUNNING_KUDUAGENT: Can be left as default (false), as Kudu needs to run to manage the jobs.
WEBSITES_ENABLE_APP_SERVICE_STORAGE: Must be set to true to ensure proper network storage mounting for /home.
WEBJOBS_ROOT_PATH: Can usually remain unset if you stick to the standard /home/site/wwwroot/App_Data structure.
Slot Settings: Make sure to mark application settings related to WebJobs and custom paths as Deployment Slot Settings so they don't get overwritten during a slot swap.
How it runs:
Your Dockerfile should place the files in the correct directory, and run.sh must have execution permissions (chmod +x run.sh).
The Kudu/WebJobs manager discovers the script, and it executes inside the app container instance where persistent storage is accessible.
How to verify and trigger it:
WebJobs discovery typically requires webJobsEnabled to be active.
Once enabled, you can check the WebJobs list via the Azure Portal or the Kudu dashboard without triggering it immediately, then trigger it manually and inspect the execution logs.
The Kudu Bash console (https://<app-name>-staging.scm.azurewebsites.net) shares the same /home persistent storage view as the executor."