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

  • SockDev

    Does anyone here know if there's a way to trigger a scheduled WebJob when a website has been successfully deployed via a 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...

  • SockDev

    @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 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.

  • SockDev

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

  • @RaceProUK

    Happy to help. Did you get it working?

  • SockDev

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

  • SockDev

    @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.