Azure web app V3P3V3 plan manual scaling

Yauheni Kisialiou 20 Reputation points
2025-10-27T09:16:22.2066667+00:00

Hi people! I have a problem with my web app running on tomcat server on linux. Web app using Premium v3 P3V3. In mu code I am setting manually instances number using AzureResourceManager library and making request like this:

 AppServicePlan appServicePlan.update()
                    .withCapacity(targetInstanceCount)
                    .apply();

In azure Portal I have Scale out method: Manual enabled. Scaling up or down is executed without problem. However every time I scale up programmatically, 3-5 minutes later Azure scales it down. I have noticed just once the instance count was "holding" for long time. But then it has gone. Any idea why Azure interferes and how fix it. And I do not have any configurations for rule based or auto scaling.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.