azure webjob on containerized app service

11.1k Views Asked by At

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!

2

There are 2 best solutions below

0
On BEST ANSWER

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.

4
On

I know there is a long time since this was asked but I have a way to use WebJobs on Linux WebApps: I use Docker Compose.

WARNING: The following link seems to have been taken over and is displaying a dubious web page You can check it working here.

In the How it works page you can see GitHub and Docker repos and Azure Pipeline as well. It's all public.