2

I'm trying to deploy AzureRM Webjobs with VSTS Release Management and haven't been able to find a good solution for it other than uploading it via FTP. This way works, but doesn't handle when the schedule of the job changes. Every solution that I've found so far refers to Classic Webjobs which won't work for jobs deployed to Resource Manager.

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
Darnell
  • 21
  • 1
  • You may check these article and thread https://azure.microsoft.com/en-in/documentation/articles/vs-azure-tools-resource-groups-ci-in-vsts/ http://stackoverflow.com/questions/35458493/how-to-deploy-to-azure-resource-group-using-vsts-release-management – starian chen-MSFT Aug 16 '16 at 06:29
  • Why can't you use built-in "Deploy AzureRM Web App" step from VSTS? How are you specifying the schedule of the Web job? – Abhay Saraf Aug 16 '16 at 12:22

1 Answers1

0

DavidDebbo created a sample for how to publish webjobs with ARM template here: ARMTemplates/WebAppWithWebJobs.json. You can refer to this for details.

Besides, you can simply add an AzureRM Web App Deployment task in your release definition to deploy your webjob via Azure Resource Manager if you can see this task in task list.

The AzureRM Web App Deployment task is used to deploy Web Apps and WebJobs to Azure. The task works with the Azure Resource Manager APIs only. The underlying technology used by the task is Web Deploy.

The task is under development and is available to a limited set of accounts on Visual Studio Team Services (VSTS). The video describes the features that are available in the task currently.

Eddie Chen - MSFT
  • 29,708
  • 2
  • 46
  • 60
  • I can see the AzureRM Web App Deployment task, however my build outputs the web app package and the web job as it's own package and when i deploy the job it just overwrites my web app. My app consist of one web app with 8 jobs under. After looking at the video that you referenced Anand doesn't really go into details about how to publish the web job, he only talks about the web app package. – Darnell Aug 23 '16 at 14:13
  • @Darnell So you mean you get two packages after your build? – Eddie Chen - MSFT Aug 23 '16 at 14:16
  • i get about 9 packages after the build. one for each job and one for the web app. @Eddie – Darnell Aug 23 '16 at 14:17
  • @Darnell Did you try add more AzureRM Web App Deployment tasks to deploy the packages for webjob? – Eddie Chen - MSFT Aug 23 '16 at 14:19
  • 1
    I did and the package was deployed to the /site/wwwroot instead of the jobs folder under the app_data. – Darnell Aug 23 '16 at 14:38
  • @Darnell Did you check the "Exclude Files from the App_Data Folder" option in the task settings? – Eddie Chen - MSFT Aug 24 '16 at 14:10
  • it's not checked. My current setup is one AzureRM Web App Deployment task for the API and then another one to deploy the jobs and the jobs overwrite the API itself. – Darnell Sep 12 '16 at 14:56