How to best YML/Task deploy Web Job to \home\site\jobs instead of home\site\wwwroot

Espen Johannessen 41 Reputation points
2020-03-11T13:57:45.953+00:00

We have a Web Job I need to deploy and run under \home\site\jobs in an App Service. We allready deploy the website itself via .yml-files with tasks (AzureRmWebAppDeployment@4).

The reason that I cannot deploy under home\site\wwwroot is that the Web Job needs to write to files which is not allowed since we use RUN_FROM_PACKAGE=1 on the website itself.

I have read several approaches to this (FTP-tasks and complicated powershell-scripts), but I imagine there is some more elegant way to accomplish this?

The task is simple: Take a .zip-file that is already present in the ArtifactStagingDirectory and unzip it under the folder \home\site\jobs\triggered\<jobname> (and start the job if it does not autostart with a jobs.settings file).

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,879 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful