I’m moving from an older, Windows-based environment to Linux CI/CD pipeline.
We used to use the Web Deploy based “DEPLOY AN AZURE WEB APP” step to deploy a webjob berfore. We simply specified the Physical Path to app_data/jobs/continuous/ etc, as you’ve documented .
Now that we’re on Linux however, we need to use a different approach. Having read Michaels article (hi Michael! ) , I can see why things need to change but it’s not clear what I need to do here.
I published the webjob to the app_data folder as part of a TeamCity step that uses the Octopus CLI to create the web package. So the resultant nuget package contains the webjob where one would expect, and during the deployment of the App Service step to deploy the web app, the webjob files are where one would expect. All as part of the step that deploys the web app. This is different to what we did before, where we deployed the web app, and then the web job thereafter independently by specifying the Physcal Path.
Unfortunately, the webjob is not being found. It’s not in the webjob list for the web app. I’ve checked via the Kudu tools that everything is where it belongs, at it looks that way.
I’m at a loss here… based on your documentation (linked above) I should be able to do what I’m doing. Obviously the deployed artifacts are different in that they’re not Windows executables being deployed. The web app works fine.
What else can I do? I’m sure I’m missing something basic here… so at the risk of sounding like in idiot I’m posting here as I’m going nuts, and it might help someone else. Do I need to deploy the webjob using the az cli? If so, what does that look like? Becuase all the docs talk to having some script to execute and I’ve not needed to do that before. I’m deploying a .Net Core executable to run continuously as a webjob.