Azure DevOps Release pipelines has many built-in tasks that ease deployment of applications to Azure Platform but WebJobs deployments are not currently supported in these tasks. Fortunately, all Azure WebApps have Kudu installed; this post explains the steps to publish WebJobs using Kudu.
Azure DevOps Release pipelines has many built-in tasks that ease deployment of applications to Azure Platform but WebJobs deployments are not currently supported in these tasks. Fortunately, all Azure WebApps have Kudu installed; this post explains the steps to publish WebJobs using Kudu.
Obtain credentials for deployment by browsing to your Azure Portal’s Web App, under Deployment Center > FTP > Dashboard
The username seen on this FTP deployment dashboard has the following string format: APP_NAME\$APP_NAME. For this automated deployment process, the username is the latter part of this string $APP_NAME
The following screenshot shows a powershell task configured on Azure Release Pipelines to execute the deploy-webjob.ps1 script.
After adding this step, add the following variables:
The following gist is powershell script to be included in the build artifact: