Skip to content

Commit 1898bda

Browse files
authored
Merge pull request #285205 from craigshoemaker/aca/structure-v1-v2
[Container Apps] New: Environment types: v1 & v2
2 parents 1bf9ffa + 64bbee1 commit 1898bda

File tree

4 files changed

+141
-0
lines changed

4 files changed

+141
-0
lines changed

articles/container-apps/TOC.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
href: jobs-get-started-cli.md
4343
- name: Key concepts
4444
items:
45+
- name: Compute and billing structures
46+
items:
47+
- name: Overview
48+
href: structure.md
49+
- name: Consumption-only environment type
50+
href: environment-type-consumption-only.md
4551
- name: Compare container options in Azure
4652
href: compare-options.md
4753
- name: Plans
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Consumption-only environment type in Azure Container Apps
3+
description: Learn about features and billing considerations for Consumption-only environment types in Azure Container Apps.
4+
services: container-apps
5+
author: craigshoemaker
6+
ms.service: azure-container-apps
7+
ms.topic: conceptual
8+
ms.date: 02/05/2025
9+
ms.author: cshoe
10+
---
11+
12+
# Consumption-only environment type in Azure Container Apps
13+
14+
In Azure Container Apps, there are two environment types which determine what features are available to your applications.
15+
16+
The Consumption-only environment runs your application using compute resources exclusively allocated on-demand. In other words, you only pay for resources consumed by your application.
17+
18+
This article explains features of the *Consumption-only (v1)* environment type. For more information on the default *Workload profiles (v2)* environment type, see [Compute and billing structures in Azure Container Apps](structure.md).
19+
20+
While Consumption-only environments are an option, for new Container Apps environments that need the consumption model, creating a *Workload profiles v2* environment with the built-in [consumption workload profile](./structure.md#workload-profiles) is recommended.
21+
22+
The Consumption-only environment type works on the consumption plan. Apps running in the Consumption-only have access to 4 vCPUs with 8 GB of memory. There's no access to GPUs in a Consumption-only environment.
23+
24+
If your application requires any capability outside these parameters, then run your apps on dedicated [workload profile](structure.md).
25+
26+
*Consumption-only (v1)* environment run exclusively on the consumption plan, which bills as your application consumes resources.
27+
28+
## FAQ
29+
30+
### Does the consumption plan work the same way in a Workload profiles (v2) environment vs. a Consumption-only (v1) environment?
31+
32+
Yes, but there are some distinctions between how the consumption plan operates among the workload profiles and consumption-only plans. Some networking features are different in a workload profiles environment. For instance, user defined routes (UDR) are only available in a workload profiles environment, and subnet sizes differ, and IP addresses are assigned differently depending on the environment type.
33+
34+
### I need consumption pricing. Should I use a Consumption-only (v1) environment, or a Workload profiles (v2) environment with the consumption profile?
35+
36+
If you need the features of a consumption model, and you're creating a new Azure Container Apps environment, use the *Workload profiles (v2)* environment with the consumption profile. Using this approach gives you the flexibility to add dedicated resources to your environment should you need them in the future.
37+
38+
## Related content
39+
40+
- [Environments](environment.md)
41+
- [Plans](plans.md)
42+
- [Workload profiles](workload-profiles-overview.md)
20.6 KB
Loading

articles/container-apps/structure.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
title: Compute and billing structures in Azure Container Apps
3+
description: Learn how compute and networking features and billing methods are structured in Azure Container Apps.
4+
services: container-apps
5+
author: craigshoemaker
6+
ms.service: azure-container-apps
7+
ms.topic: conceptual
8+
ms.date: 02/05/2025
9+
ms.author: cshoe
10+
---
11+
12+
# Compute and billing structures in Azure Container Apps
13+
14+
In Azure Container Apps, the environment and plan type you use determines the functionality and billing methods associated with your application. This article explains the relationship between plans, workload profiles, and why to consider selecting one over another.
15+
16+
## Environment types
17+
18+
Azure Container Apps features two different environment types.
19+
20+
| Name | Identifier | Is default | Notes |
21+
|---|---|---|---|
22+
| Workload profiles | v2 | Yes | This article explains the details surrounding the default *Workload profiles (v2)* environment type. |
23+
| Consumption-only | v1 | No | For more detail on the *Consumption-only (v1)* environment type, see [Consumption-only environment type](environment-type-consumption-only.md). |
24+
25+
The default environment type, **Workload profiles (v2)** environment allows you to use different compute profiles, known as *workload profiles*. Each profile features different amounts of compute resources, and is tailored specifically to meet your app's needs.
26+
27+
A *Workload profiles (v2)* environment allows you to select the type of compute profiles used in your environment, and different profiles run on different plans.
28+
29+
> [!NOTE]
30+
> Any new Azure Container Apps environments you create should be a *Workload profiles (v2)* environment. The *v2* environment type gives you the maximum flexibility for consumption and dedicated compute options. A *v2* environment gives you all the consumption functionality you need along with access to more robust networking features.
31+
32+
The following diagram shows how you can have different workload profiles in an environment, and how each profile is supported by either the dedicated or consumption plan.
33+
34+
:::image type="content" source="media/structure/azure-container-apps-structure.png" alt-text="Diagram of Azure Container Apps architecture structure.":::
35+
36+
Plans are related to your environment type and dictate usage costs and influence the features available to your container apps. Workload profiles determine the specific compute resources available to your environment, and each profile works either on the dedicated or the consumption plan.
37+
38+
To better understand these relationships, start by considering the differences between different workload profiles.
39+
40+
## Workload profiles
41+
42+
Each *Workload profiles (v2)* environment automatically comes with a consumption profile. The consumption profile allows you to run applications where you only want to pay for usage. Ultimately, you decide whether or not to use the consumption profile since you only incur costs as when apps are running in the consumption workload profile.
43+
44+
By default, every *v2* environment only comes with a consumption workload profile. Depending on the needs of your app, you can choose to add any other specialized workload profiles that are best tailored for your application's needs.
45+
46+
The consumption profile makes 4 vCPUs with 8 GB of memory available to your apps. If you require more resources, then run your apps on dedicated workload profile. You can add as many dedicated workload profiles to your environment as necessary.
47+
48+
When you choose to use a dedicated workload profile, you can select the allocated amount of memory and compute resources available to your apps. For more information on available virtual machine sizes, see [Sizes for virtual machines in Azure](/azure/virtual-machines/sizes/overview).
49+
50+
Regardless of what type of profile you decide to run, each profile runs on a plan. The consumption profile runs on the consumption plan while dedicated workload profiles use the dedicated plan.
51+
52+
## Plans
53+
54+
The plan running in your Container Apps environment determines available features and controls how billing is calculated. You can choose from dedicated resources or a consumption context where you only pay for use.
55+
56+
There are two types of plans:
57+
58+
| Plan type | Unique features | Billing method |
59+
|---|---|---|---|
60+
| **Dedicated plan** | Compute resources (vCPUs and RAM) dedicated to your environment | Dependent on the compute resources you make available to your workload profiles. The more vCPUs and RAM you allocate, the more you pay per month. |
61+
| **Consumption plan** | Allows your apps to scale to zero. | Billed as your application consumes resources. |
62+
63+
Each plan is paired with one or more workload profiles.
64+
65+
## Making a selection
66+
67+
Any new Azure Container Apps environments you create should be a *Workload profiles (v2)* environment. The *v2* environment type gives you the maximum flexibility to use both the dedicated and consumption model.
68+
69+
*Workload profiles v2* environments have access to an extensive networking stack which includes firewall support, native private endpoints, and optimized IP address allocation.
70+
71+
## FAQ
72+
73+
### Can you have more than one consumption profile running in a workload profiles environment?
74+
75+
No. Every workload profiles environment comes with a single consumption profile by default. You use this profile for all your consumption needs.
76+
77+
### Can I remove the consumption profile from workload profiles environment?
78+
79+
No. If you don't need the consumption profile, just don't use it. As typical with pay-as-you-go scenarios, you aren't charged for the consumption profile if you don't use the profile.
80+
81+
### Does the consumption plan work the same way in a Workload profiles (v2) environment vs. a Consumption-only (v1) environment?
82+
83+
Yes, but there are some distinctions between how the consumption plan operates among the workload profiles and consumption-only plans. Some networking features are different in a workload profiles environment. For instance, user defined routes (UDR) are only available in a workload profiles environment, and subnet sizes differ, and IP addresses are assigned differently depending on the environment type.
84+
85+
### I need consumption pricing. Should I use a Consumption-only (v1) environment, or a Workload profiles (v2) environment with the consumption profile?
86+
87+
If you need the features of a consumption model, and you're creating a new Azure Container Apps environment, use the Workload profiles (v2) environment with the consumption profile. This approach gives you the flexibility to add dedicated resources to your environment should you need them in the future.
88+
89+
## Related content
90+
91+
- [Environments](environment.md)
92+
- [Plans](plans.md)
93+
- [Workload profiles](workload-profiles-overview.md)

0 commit comments

Comments
 (0)