I am trying to deploy a continuous queue-triggered WebJob onto an Azure instance but I'm getting some issues that I was hoping someone could help me.
When I publish from Visual Studio (2015), it goes into the WebApp's app_data folder under jobs folder. I can see the WebJob from the portal under the WebJobs settings section. All is good.
I am trying to automate this through VSTS and that's where I am getting issues. When I deploy it using the Azure App Service Deploy task it adds it to the root folder of the WebApp, i.e. wwwroot folder. From other StackOverflow questions it seems that if I package it into a zip folder and deploy the zip folder it should work. Unfortunately I get the same issue.
I'm probably doing something silly but if someone could suggest where I'm going wrong then that would be great.
Build Definition
Nuget (restore) on the sln file
Visual Studio Build. VS2015 on the sln file with MSBuild args of
/p:WebPublishMethod=Package
- I am actually using SlowCheetah so for each of my environment I have a Build task so that I can build it with the correct settings for the environment.
Copy bin files to
$(build.artifactstagingdirectory)
Archive to
$(build.artifactstagingdirectory)
as wellPublish
Release definition
- Azure App Service Deploy
- App type and app service name pointing to web app and the web app on my azure account
- Package or folder set to the zip file
Screenshots attached below. Any suggestions on what I'm doing wrong?
Kind regards Sidharth