How are the webjobs distributed across VMs in Azure App service?

71 views Asked by At

There are 10 VMs in Isolated tier and there are 10 deployment slots. I've 10 continuous webjobs one per each slot running in singleton mode. Can I expect webjobs to be distributed across VMs in 1:1 ratio i.e, 1 webjob per VM? Or is the distribution of webjobs done randomly?

1

There are 1 answers

2
SnehaAgrawal-MSFT On

As you might be aware of that Isolated tiers run dedicated Azure VMs on dedicated Azure Virtual Networks and It provides network isolation on top of compute isolation to your apps. With the dedicated app plans means each web app is running on it’s own hardware.

Further WebJobs is a feature of Azure App Service that enables you to run a program or script in the same instance as a web app

And for continuous type web job it runs on all instances that the web app runs on. but you can optionally restrict the WebJob to a single instance.