Plan to manage costs for App Service - Azure App Service (2023)

  • Article
  • 9 minutes to read

This article describes how you plan for and manage costs for Azure App Service. First, you use the Azure pricing calculator to help plan for App Service costs before you add any resources for the service to estimate costs. Next, as you add Azure resources, review the estimated costs. After you've started using App Service resources, use Cost Management features to set budgets and monitor costs. You can also review forecasted costs and identify spending trends to identify areas where you might want to act. Costs for Azure App Service are only a portion of the monthly costs in your Azure bill. Although this article explains how to plan for and manage costs for App Service, you're billed for all Azure services and resources used in your Azure subscription, including the third-party services.

Understand the full billing model for Azure App Service

Azure App Service runs on Azure infrastructure that accrues costs when you deploy new resources. It's important to understand that there could be other additional infrastructure costs that might accrue.

How you're charged for Azure App Service

When you create or use App Service resources, you're charged for the following meters:

  • You're charged an hourly rate based on the pricing tier of your App Service plan, prorated to the second.
  • The charge is applied to each scaled-out instance in your plan, based on the amount of time that the VM instance is allocated.

Other cost resources for App Service are (see App Service pricing for details):

  • App Service domains Your subscription is charged for the domain registration on a yearly basis, if you enable automatic renewal.
  • App Service certificates One-time charge at the time of purchase. If you have multiple subdomains to secure, you can reduce cost by purchasing one wildcard certificate instead of multiple standard certificates.
  • IP-based certificate bindings The binding is configured on a certificate at the app level. Costs are accrued for each binding. For Standard tier and above, the first IP-based binding is not charged.

At the end of your billing cycle, the charges for each VM instance. Your bill or invoice shows a section for all App Service costs. There's a separate line item for each meter.

Other costs that might accrue with Azure App Service

Depending on which feature you use in App Service, the following cost-accruing resources may be created:

  • Isolated tier A Virtual Network is required for an App Service environment and is charged separately.
  • Backup A Storage account is required to make backups and is charged separately.
  • Diagnostic logs You can select Storage account as the logging option, or integrate with Azure Log Analytics. These services are charged separately.
  • App Service certificates Certificates you purchase in Azure must be maintained in Azure Key Vault, which is charged separately.

Costs that might accrue after resource deletion

When you delete all apps in an App Service plan, the plan continues to accrue charges based on its configured pricing tier and number of instances. To avoid unwanted charges, delete the plan or scale it down to Free tier.

After you delete Azure App Service resources, resources from related Azure services might continue to exist. They continue to accrue costs until you delete them. For example:

(Video) Azure Web Apps #3 - App service plan costing

  • The Virtual Network that you created for an Isolated tier App Service plan
  • Storage accounts you created to store backups or diagnostic logs
  • Key Vault you created to store App Service certificates
  • Log Analytic namespaces you created to ship diagnostic logs
  • Instance or stamp reservations for App Service that haven't expired yet

Using Azure Prepayment with Azure App Service

You can pay for Azure App Service charges with your Azure Prepayment credit. However, you can't use Azure Prepayment credit to pay for charges for third-party products and services, including those from the Azure Marketplace.

Estimate costs

An easy way to estimate and optimize your App Service cost beforehand is by using the Azure pricing calculator.

To use the pricing calculator, click App Service in the Products tab. Then, scroll down to work with the calculator. The following screenshot is an example and doesn't reflect current pricing.

Plan to manage costs for App Service - Azure App Service (1)

Review estimated costs in the Azure portal

When you create an App Service app or an App Service plan, you can see the estimated costs.

To create an app and view the estimated price:

  1. On the create page, scroll down to App Service plan, and click Create new.

  2. Specify a name and click OK.

  3. Next to Sku and size, click Change size.

  4. Review the estimated price shown in the summary. The following screenshot is an example and doesn't reflect current pricing.

    (Video) Azure app service plan

    Plan to manage costs for App Service - Azure App Service (2)

If your Azure subscription has a spending limit, Azure prevents you from spending over your credit amount. As you create and use Azure resources, your credits are used. When you reach your credit limit, the resources that you deployed are disabled for the rest of that billing period. You can't change your credit limit, but you can remove it. For more information about spending limits, see Azure spending limit.

Optimize costs

At a basic level, App Service apps are charged by the App Service plan that hosts them. The costs associated with your App Service deployment depend on a few main factors:

  • Pricing tier Otherwise known as the SKU of the App Service plan. Higher tiers provide more CPU cores, memory, storage, or features, or combinations of them.
  • Instance count dedicated tiers (Basic and above) can be scaled out, and each scaled out instance accrues costs.
  • Stamp fee In the Isolated tier, a flat fee is accrued on your App Service environment, regardless of how many apps or worker instances are hosted.

An App Service plan can host more than one app. Depending on your deployment, you could save costs hosting more apps on one App Service plans (i.e. hosting your apps on fewer App Service plans).

For details, see App Service plan overview

Non-production workloads

To test App Service or your solution while accruing low or minimal cost, you can begin by using the two entry-level pricing tiers, Free and Shared, which are hosted on shared instances. To test your app on dedicated instances with better performance, you can upgrade to Basic tier, which supports both Windows and Linux apps.

Note

Azure Dev/Test Pricing To test pre-production workloads that require higher tiers (all tiers except for Isolated), Visual Studio subscribers can also take advantage of the Azure Dev/Test Pricing, which offers significant discounts.

Both the Free and Shared tier, as well as the Azure Dev/Test Pricing discounts, don't carry a financially backed SLA.

(Video) 3 App Service Plan pricing tiers

Production workloads

Production workloads come with the recommendation of the dedicated Standard pricing tier or above. While the price goes up for higher tiers, it also gives you more memory and storage and higher-performing hardware, giving you higher app density per compute instance. That translates to lower instance count for the same number of apps, and therefore lower cost. In fact, Premium V3 (the highest non-Isolated tier) is the most cost effective way to serve your app at scale. To add to the savings, you can get deep discounts on Premium V3 reservations.

Note

Premium V3 supports both Windows containers and Linux containers.

Once you choose the pricing tier you want, you should minimize the idle instances. In a scale-out deployment, you can waste money on underutilized compute instances. You should configure autoscaling, available in Standard tier and above. By creating scale-out schedules, as well as metric-based scale-out rules, you only pay for the instances you really need at any given time.

Azure Reservations

If you plan to utilize a known minimum number of compute instances for one year or more, you should take advantage of Premium V3 tier and drive down the instance cost drastically by reserving those instances in 1-year or 3-year increments. The monthly cost savings can be as much as 55% per instance. Two types of reservations are possible:

  • Windows (or platform agnostic) Can apply to Windows or Linux instances in your subscription.
  • Linux specific Applies only to Linux instances in your subscription.

The reserved instance pricing applies to the applicable instances in your subscription, up to the number of instances that you reserve. The reserved instances are a billing matter and are not tied to specific compute instances. If you run fewer instances than you reserve at any point during the reservation period, you still pay for the reserved instances. If you run more instances than you reserve at any point during the reservation period, you pay the normal accrued cost for the additional instances.

The Isolated tier (App Service environment) also supports 1-year and 3-year reservations at reduced pricing. For more information, see How reservation discounts apply to Azure App Service.

Monitor costs

As you use Azure resources with App Service, you incur costs. Azure resource usage unit costs vary by time intervals (seconds, minutes, hours, and days). As soon as App Service use starts, costs are incurred and you can see the costs in cost analysis.

When you use cost analysis, you view App Service costs in graphs and tables for different time intervals. Some examples are by day, current and prior month, and year. You also view costs against budgets and forecasted costs. Switching to longer views over time can help you identify spending trends. And you see where overspending might have occurred. If you've created budgets, you can also easily see where they're exceeded.

(Video) Create the best consumption plan for Azure App Service

To view App Service costs in cost analysis:

  1. Sign in to the Azure portal.
  2. Open the scope in the Azure portal and select Cost analysis in the menu. For example, go to Subscriptions, select a subscription from the list, and then select Cost analysis in the menu. Select Scope to switch to a different scope in cost analysis.
  3. By default, cost for services are shown in the first donut chart. Select the area in the chart labeled App Service.

Actual monthly costs are shown when you initially open cost analysis. Here's an example showing all monthly usage costs.

Plan to manage costs for App Service - Azure App Service (3)

To narrow costs for a single service, like App Service, select Add filter and then select Service name. Then, select App Service.

Here's an example showing costs for just App Service.

Plan to manage costs for App Service - Azure App Service (4)

In the preceding example, you see the current cost for the service. Costs by Azure regions (locations) and App Service costs by resource group are also shown. From here, you can explore costs on your own.

Create budgets

You can create budgets to manage costs and create alerts that automatically notify stakeholders of spending anomalies and overspending risks. Alerts are based on spending compared to budget and cost thresholds. Budgets and alerts are created for Azure subscriptions and resource groups, so they're useful as part of an overall cost monitoring strategy.

Budgets can be created with filters for specific resources or services in Azure if you want more granularity present in your monitoring. Filters help ensure that you don't accidentally create new resources that cost you extra money. For more information about the filter options available when you create a budget, see Group and filter options.

Export cost data

You can also export your cost data to a storage account. This is helpful when you need or others to do more data analysis for costs. For example, a finance team can analyze the data using Excel or Power BI. You can export your costs on a daily, weekly, or monthly schedule and set a custom date range. Exporting cost data is the recommended way to retrieve cost datasets.

(Video) Azure pricing tiers

Next steps

  • Learn more on how pricing works with Azure Storage. See App Service pricing.
  • Learn how to optimize your cloud investment with Azure Cost Management.
  • Learn more about managing costs with cost analysis.
  • Learn about how to prevent unexpected costs.
  • Take the Cost Management guided learning course.

FAQs

Which five factors affect the cost of an App Service in Azure? ›

Among these factors that affect your costs are resource type, usage meters, resource usage, Azure subscription types, and Azure Marketplace.

Which of the following Azure Functions hosting plans is best when predictive scaling and costs are required? ›

Dedicated plan

Consider an App Service plan in the following situations: ✔ You have existing, underutilized VMs that are already running other App Service instances. ✔ Predictive scaling and costs are required.

Do you pay for App Service or App Service plan? ›

You don't get charged for using the App Service features that are available to you (configuring custom domains, TLS/SSL certificates, deployment slots, backups, etc.). The exceptions are: App Service Domains - you pay when you purchase one in Azure and when you renew it each year.

Which factors affect the cost of an App Service? ›

In this blog, we will help you identify key factors that can affect the cost of app development in 2022.
  • #1. Operating System of a Mobile Device: iOS vs Android. ...
  • #2. Type and Size of the App. ...
  • #3. Core Features. ...
  • #4. Application Security Cost. ...
  • #5. UI/UX.
Jun 20, 2022

What methods can you use to reduce Azure costs? ›

7 ways to optimize costs today
  • Shut down unused resources. ...
  • Right-size underused resources. ...
  • Reserve instances for consistent workloads. ...
  • Take advantage of the Azure Hybrid Benefit. ...
  • Configure autoscaling. ...
  • Set up budgets and allocate costs to teams and projects. ...
  • Choose the right Azure compute service.

What are the 3 important services offered by Azure? ›

This gives users the flexibility to use their preferred tools and technologies. In addition, Azure offers four different forms of cloud computing: infrastructure as a service (IaaS), platform as a service (PaaS), software as a service (SaaS) and serverless functions.

What should you use to track the costs of Azure? ›

Azure Cost Management + Billing is the primary tool you'll use to analyze your usage and costs. It gives you multiple options to analyze your monthly charges for different Azure Monitor features and their projected cost over time.

What is App Service Plan and Consumption Plan? ›

With the Consumption plan, you do not have to worry about the dimension of your infrastructure, scaling, or pay when not utilizing any resources. For the App Service plan, however, you do need to allocate resources for your functions explicitly and pay for them regardless if you are running functions or not.

Which Azure tools allows you to make detailed estimates for Azure deployment costs? ›

Azure total cost of ownership (TCO) calculator is a cost management tool that enables you to estimate the cost of migrating your workloads to Azure and predict your potential savings for existing workloads.

What is difference between App Service and App Service plan? ›

An App Service Environment is a single-tenant deployment of Azure App Service that runs on your virtual network. Applications are hosted in App Service plans, which are created in an App Service Environment. An App Service plan is essentially a provisioning profile for an application host.

How many app services per plan? ›

You can host up to 100 apps in a single app service plan, but the key thing to know here is that as with the free plan you are charged per app, not per app service plan. Each instance of a web app you deploy in the shared plan get's it's own 240 CPU minutes limit and is charged per app.

How do I manage my app charges? ›

Tap on any app you no longer want to pay for, scroll to the bottom and hit Cancel Subscription. (On newer Android devices, go to Settings -> Google -> Manage Google Accounts -> Payments and Subscriptions -> Manage Subscriptions.)

What are the five factors that determine the quality and cost of service? ›

Five factors to consider when pricing products or services
  • Costs. First and foremost you need to be financially informed. ...
  • Customers. Know what your customers want from your products and services. ...
  • Positioning. Once you understand your customer, you need to look at your positioning. ...
  • Competitors. ...
  • Profit.
Nov 22, 2018

What determines cost of an app? ›

The key cost- drivers of app development vary about its building strategy, development platform, device compatibility, app functionalities, security, testing, hosting, and maintenance. Above all, the working business model of the enterprise determines the other ad hoc cost requirements.

What is the cost structure of an app? ›

Many factors influence the price, depending on the complexity of the app development, at 40$ per hour, the average cost will be: Simple App Development Cost – $40,000 to $60,000. Average App Development Cost – $60,000 to $150,000. Complex App Development Cost – from $300,000.

What is meant by App Service? ›

Application services are software solutions that improve the speed, security, and operability of applications.

What is App Service plan in function app? ›

An App Service plan defines a set of compute resources for an app to run. These compute resources are analogous to the server farm in conventional hosting. One or more function apps can be configured to run on the same computing resources (App Service plan) as other App Service apps, such as web apps.

How does App Service work? ›

With App Service, you pay for the Azure compute resources you use. The compute resources you use are determined by the App Service plan that you run your apps on. For more information, see Azure App Service plans overview.

How do you know if an app is free or cost money? ›

You can also identify free apps in the App Store by the download button, which is marked "Get" for all free apps (it will instead show a price if it costs money).

Videos

1. Azure APP & APP Service Plan Explained !!! (Part 1)
(Girish Sharma)
2. Azure App Service (Web Apps) Tutorial
(Adam Marczak - Azure for Everyone)
3. What is Azure App Service, App Service Plans and App service Environment?
(Learn MS Azure)
4. AZ-204 Exam EP 03: App Service Plan
(A Guide To Cloud)
5. Optimizing Azure Costs: Compute, Network, Storage, Identity, and App Services - Azure Training
(Cloud Academy)
6. How to auto-scale and optimize performance of .NET Web Apps with Microsoft Azure App Service
(Microsoft Azure)
Top Articles
Latest Posts
Article information

Author: Duncan Muller

Last Updated: 01/25/2023

Views: 6285

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.