Can we stop Azure App Service to save cost ?

MS Techie 2,751 Reputation points
2021-02-18T11:11:00.29+00:00

69525-image.png
Why have they given the Number of Hours for the Azure App Service. Anyways we cannot stop the Azure App Service to save some costs.
OR
is there an option to STOP the AppService to SAVE COST ? Can we schedule the Start and Stop of Azure App Service ?

My requirement is that the Web App should be running during Weekdays and shutdown during Weekends.

I am aware that for Azure VMs, we can stop the Azure VM , during non-working hours to save money .

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,971 questions
0 comments No comments
{count} votes

Accepted answer
  1. sadomovalex 3,636 Reputation points
    2021-02-22T14:58:47.89+00:00

    it is possible to stop whole app service (see Full stopping a Web App), but I'm not sure that it will affect pricing:

    1. Go to https://resources.azure.com
    2. Find needed app service from above list
    3. In JSON view on the right side click Edit
    4. Change “state” from “Running” to “Stopped” – this is the same as if you would stop App service form Azure portal
    5. Find “scmSiteAlsoStopped” property and set it from “false” to “true” – it will stop SCM file

    03.png


3 additional answers

Sort by: Most helpful
  1. Jack Roper 21 Reputation points
    2021-02-18T17:01:50.307+00:00

    I don't believe that is possible - one workaround would be to use autoscaling rules to move between free or lower cost app service tiers based on time of day or usage.

    https://learn.microsoft.com/en-us/azure/app-service/overview-hosting-plans

    4 people found this answer helpful.

  2. MS Techie 2,751 Reputation points
    2021-02-22T09:48:09.117+00:00

    Can some expert or Microsoft Employee comment on this

    if Azure App Service cannot be stopped to save money... then why in microsoft Azure Pricing site, they talk about number of hours of running App Service ?

    69525-image.png

    3 people found this answer helpful.

  3. Henry Le 5 Reputation points
    2024-11-11T05:56:39.65+00:00

    I think they mean that they will calculate cost based on used hours (you can scale up/down an App Service and/or just create/delete a new App Service anytime during the month, which affecting the cost per month), but it does not mean that they design the resource as something that can be paused/resumed natively for the sake of saving cost.

    The underlying reason could be: App Service is indeed a dedicated server (CPU + Memory + Disk) which is a preserved resource (could be tied to multiple Function App / Logic Apps) thus pausing them does not release the resource back to Azure. Therefore, in Azure perspective, they are still paying for the resource cost. If they pay, we need to pay them back for sure.

    0 comments No comments

Your answer

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