Deploy Azure WebJob using PowerShell Automation

I'm trying to deploy an Azure WebJob using the Azure PowerShell SDK or Rest API, and I'm having trouble finding support for WebJob deployment. It's very easy to do this through the UI in VS or Azure Management Portal, but there doesn't seem to be much automation support.

According to some sites, when deploying the Azure Website with the appropriate web job, it should automatically deploy the web job, but I don't see this happening when I publish the web project to VS, and I can't see how that would work after that how the bits will be compiled through TFS.

I found some great resources that I tried but didn't seem to work for me: http://azure.microsoft.com/en-us/documentation/articles/websites-dotnet-deploy-webjobs/#deploy http: / /azure.microsoft.com/blog/2014/08/18/enabling-command-line-or-continuous-delivery-of-azure-webjobs/ Sorry, I need to integrate this automation into the offline build of the deployment, so I cannot bind it to MSBuild.

I would be glad if this was possible with both an Azure site and a WebJob. I would imagine there should be a way to automate the upload of the zip file containing the WebJob executable to the website, as you can through the portal, but I had no luck finding one.

+3


source to share


1 answer


Apparently, according to this post, the job is simply placed in the folder corresponding to the job name on your webpage App_Data

.



You may have to manually download the job as a zip file once, but then I assumed that you can do something magical in your deployment or post build task to create a web application console app and insert it into the appropriate one App_Data

.

+3


source







All Articles