Billing in Azure Container Apps

Billing in Azure Container Apps is based on your plan type.

Plan type Description
Consumption plan Serverless compute option where you're only billed for the resources your apps use as they're running.
  • Your plan selection determines billing calculations.
  • Different applications in an environment can use different plans.

This article describes how to calculate the cost of running your container app. For pricing details in your account's currency, see Azure Container Apps Pricing.

Consumption plan

Billing for apps running in the Consumption plan consists of two types of charges:

  • Resource consumption: The amount of resources allocated to your container app on a per-second basis, billed in vCPU-seconds and GiB-seconds.
  • HTTP requests: The number of HTTP requests your container app receives.

The following resources are free during each calendar month, per subscription:

  • The first 180,000 vCPU-seconds
  • The first 360,000 GiB-seconds
  • The first 2 million HTTP requests

Free usage doesn't appear on your bill. You'll only be charged when your resource usage exceeds the monthly free grants.

Note

If you use Container Apps with your own virtual network or your apps utilize other Azure resources, additional charges may apply.

Resource consumption charges

Azure Container Apps runs replicas of your application based on the scaling rules and replica count limits you configure for each revision. You're charged for the amount of resources allocated to each replica while it's running.

There are 2 meters for resource consumption:

  • vCPU-seconds: The number of vCPU cores allocated to your container app on a per-second basis.
  • GiB-seconds: The amount of memory allocated to your container app on a per-second basis.

The first 180,000 vCPU-seconds and 360,000 GiB-seconds in each subscription per calendar month are free.

Container apps

The rate you pay for resource consumption depends on the state of your container app's revisions and replicas. By default, replicas are charged at an active rate. However, in certain conditions, a replica can enter an idle state. While in an idle state, resources are billed at a reduced rate.

No replicas are running

When a revision is scaled to zero replicas, no resource consumption charges are incurred.

Minimum number of replicas are running

Idle usage charges may apply when a container app's revision is running under a specific set of circumstances. To be eligible for idle charges, a revision must be:

Usage charges are calculated individually for each replica. A replica is considered idle when all of the following conditions are true:

  • The replica is running in a revision that is currently eligible for idle charges.
  • All of the containers in the replica have started and are running.
  • The replica isn't processing any HTTP requests.
  • The replica is using less than 0.01 vCPU cores.
  • The replica is receiving less than 1,000 bytes per second of network traffic.

When a replica is idle, resource consumption charges are calculated at the reduced idle rates. When a replica isn't idle, the active rates apply.

More than the minimum number of replicas are running

When a revision is scaled above the minimum replica count, all of its running replicas are charged for resource consumption at the active rate.

Request charges

In addition to resource consumption, Azure Container Apps also charges based on the number of HTTP requests received by your container app. Only requests that come from outside a Container Apps environment are billable.

The first 2 million requests in each subscription per calendar month are free.