Deploy a .NET Core WebJob within Azure Devops pipelines

Recently I created an WebJob to do some background processing for our company’s web app. It took me some time find out how to deploy the WebJob using Azure Devops (most documentation is about full framework WebJobs), so I’d like to share my deployment script with you.

  1. Add an Azure Powershell task to your build or release pipeline
Image for post
Image for post

2. Change the variables in the top of the script below to match your resource group / web app / webjob names.

Written by

.NET developer living in The Netherlands. I write stories because it helps me sharing and remembering knowledge.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store