Skip to main content

Command Palette

Search for a command to run...

Stopping an Azure WebJob

Published
1 min read
F

I used to be a .NET developer. Nowaways, I am a DevOps solutions architect with a focus on Azure and Kubernetes.

I also love productivity topics, especially when it comes to doing more with less of my time. I'm also a daddy, so time is a limited resource for me.

Turns out that just stopping an app service with web jobs in it, doesn’t actually stop them. Counter intuitive right?

Instead, one way to turn off the webjobs completely is by adding an app setting to the app service called WEBJOBS_STOPPED and setting it to 1.

You can read the wiki under the project kudu repo.

After some thought, in an odd way it makes sense. Webjobs were designed to co-exist with websites living in the same app service. So, if someone stopped a website, it could keep the web job running… I guess.

Thankfully, webjobs will be irrelevant someday. They’re pretty close to being so.