Search code examples
azuredockerwebjob

azure webjob on containerized app service


Is it possible to create a webjob on a dockerized app service in Azure? Background:

I have an app service plan in Azure on East1, Linux OS, S1 Tier pricing. On that plan I have a dockerized app service running a super simple Node.js app. The Node app saves .png files to blob container storage and I want to create a scheduled webjob that clears out old .png's. All seems good, except Azure does not give me the option to create the webjob. The option is greyed out:

webjobs not available:

image

I tried scaling up the pricing tier on the subscription and that didn't work.

I also have another subscription that's Central, S1, but this one is a Windows machine and the app service on subscription #2 is a regular app service running a .net app. On this app service, I do have the ability to run a webjob.

There are several differences between the two, so does anyone know why one works and not the other? Is it the region? The fact that the app service is on Docker? or is it Windows vs Linux?

Is it possible to deploy a WebJob to the dockerized app service from Visual Studio even if it doesn't appear to be possible to do so from the Azure portal? I'm having trouble finding documentation on this.

many thanks!


Solution

  • Currently, azure app service for Linux and Docker seems not support webjob in the portal.

    Is it possible to deploy a WebJob to the dockerized app service from Visual Studio even if it doesn't appear to be possible to do so from the Azure portal? I'm having trouble finding documentation on this.

    Not sure but big probability can't, you could refer to this article to have a try: Develop and deploy WebJobs using Visual Studio - Azure App Service.

    Besides, if you want to improve it, you could post your idea in the azure feedback.