azure app service plans and apps

Iheb Jendoubi 60 Reputation points
2025-04-16T16:50:38.7833333+00:00

I am currently using an Azure App Service Plan P0v3 (Premium) to host two applications: a React frontend and a Node.js Express backend. The applications are only active during business hours, specifically from 8:00 AM to 6:00 PM.

I would like to optimize the cost of my Azure App Service Plan by reducing charges during inactive hours. Since the applications are not used after 6:00 PM, is there a way to scale down or pause the App Service Plan outside working hours, so that I am charged on an hourly basis or only during active periods?

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

1 answer

Sort by: Most helpful
  1. Prabhavathi Manchala 2,465 Reputation points Microsoft External Staff Moderator
    2025-04-16T18:11:44.7833333+00:00

    Hi Iheb Jendoubi,

    You are on a Premium v3 (P0v3) App Service Plan that charges by the hour, regardless of app usage. Even if your apps run for only 10 hours a day, you will still be billed for all 24 hours, as the plan cannot be paused or scaled to zero.

    • You can use Azure Logic Apps or Azure Automation to automatically scale your App Service Plan down during off-hours (like evenings and weekends) and back up during business hours. While you can't fully pause the plan, you can switch to a cheaper tier at night and back to Premium during the day.
    • Use Azure Automation Runbooks or Azure Logic Apps with a scheduled trigger to automate scaling your App Service Plan. Scale down from P0v3 to B1 (or a cheaper tier) at 6:00 PM, and scale back up from B1 to P0v3 at 8:00 AM using Azure REST API or PowerShell.
    • If your applications can be containerized, consider migrating them to Azure Container Apps or Azure Functions. These services offer serverless pricing, where you only pay for the execution time.
    • If you plan to use these apps long-term, Azure's Reserved Instances and Savings Plans for App Service Premium V3 can save you up to 55% compared to pay-as-you-go pricing.

    Announcing lower pricing for Azure App Service Premium P0v3 to help build and modernize AI apps | Microsoft Community Hub

    Please accept as "Yes" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.

    Let me know if you have any further Queries.

    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.