Surfing the Azure Seas: Triggering a WebJob after App Service deployment


  • sockdevs

    Does anyone here know if there's a way to trigger a scheduled WebJob when a website has been successfully deployed via a VisualStudio.com Release? Note that the WebJob is hosted in a separate App Service to the website.


  • Impossible Mission Players - A

    Is there some kind of post-deploy action? It doesn't sound like they would do such a thing though...


  • sockdevs

    @Tsaukpaetra I've not seen one, but I can always have another look.



  • This should definitely by possible by using the WebJob API and customising the Release definition on VisualStudio.com. You can add a PowerShell script step to your Release definition, which in turn performs a web request against the WebJob API to trigger your job.


  • sockdevs

    @AlexMedia Thanks: looks like just the thing I need :slight_smile:



  • @RaceProUK

    Happy to help. Did you get it working?


  • sockdevs

    @AlexMedia I'll let you know on Monday, when I'm back in work ;)


  • sockdevs

    @AlexMedia I couldn't get it working with the REST API, but then I found this:

    Which, when I think about it, should have been my first port of call :slight_smile:

    Anyway, it's all working now.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.