You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/functions-overview.md
+28-10Lines changed: 28 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: azure-container-apps
7
7
ms.topic: how-to
8
-
ms.date: 03/31/2025
8
+
ms.date: 04/03/2025
9
9
ms.author: cshoe
10
10
---
11
11
@@ -15,6 +15,8 @@ Azure Functions provides integrated support for developing, deploying, and manag
15
15
16
16
Container Apps hosting lets you run your functions in a fully supported and managed, container-based environment with built-in support for open-source monitoring, mTLS, Dapr, and Kubernetes Event-driven Autoscaling (KEDA).
17
17
18
+
As an integrated feature on Azure Container Apps, you can deploy Azure Functions images directly onto Azure Container Apps using the `Microsoft.App` resource provider by setting `kind=functionapp` when calling `az containerapp create`. Apps created this way have access to all Azure Container Apps features.
19
+
18
20
This article shows you how to create and deploy an Azure Functions app that runs within Azure Container Apps. You learn how to:
19
21
20
22
- Set up a containerized Functions app with preconfigured auto scaling rules
@@ -23,6 +25,18 @@ This article shows you how to create and deploy an Azure Functions app that runs
23
25
24
26
By running Functions in Container Apps, you benefit from automatic scaling, easy configuration, and a fully managed container environment—all without having to manage the underlying infrastructure yourself.
25
27
28
+
## Scenarios
29
+
30
+
Azure Functions in Container Apps provides a versatile combination of services to meet the needs of your applications. The following scenarios are representative of the types of situations where paring Azure Container Apps with Azure Functions gives you the control and scaling features you need.
31
+
32
+
-**Line-of-business APIs**: Package custom libraries, packages, and APIs with Functions for line-of-business applications.
33
+
34
+
-**Migration support**: Migration of on-premises legacy and/or monolith applications to cloud native microservices on containers.
35
+
36
+
-**Event-driven architecture**: Supports event-driven applications for workloads already running on Azure Container Apps.
37
+
38
+
-**Serverless workloads**: Serverless workload processing of videos, images, transcripts, or any other processing intensive tasks that required GPU compute resources.
39
+
26
40
## Event-driven scaling
27
41
28
42
All Functions triggers are available in your containerized Functions app. However, only the following triggers can dynamically scale (from zero instances) based on received events when running in a Container Apps environment:
@@ -39,23 +53,27 @@ All Functions triggers are available in your containerized Functions app. Howeve
39
53
40
54
Azure Functions on Container Apps is designed to configure the scale parameters and rules as per the event target. You don't need to worry about configuring the KEDA scaled objects. You can still set minimum and maximum replica count when creating or modifying your function app.
41
55
42
-
You can write your function code in any language stack supported by Azure Functions. You can use the same Functions triggers and bindings with event-driven scaling.
56
+
You can write your function code in any [language stack supported](/azure/azure-functions/supported-languages?tabs=isolated-process%2Cv4&pivots=programming-language-csharp) by Azure Functions. You can use the same Functions triggers and bindings with event-driven scaling.
43
57
44
-
## Scenarios
58
+
## Managed identity authorization
45
59
46
-
Azure Functions in Container Apps provides a versatile combination of services to meet the needs of your applications. The following scenarios are representative of the types of situations where paring Azure Container Apps with Azure Functions gives you the control and scaling features you need.
60
+
To adhere to security best practices, connect to remote services using Microsoft Entra authentication and managed identity authorization.
47
61
48
-
-**Line-of-business APIs**: Package custom libraries, packages, and APIs with Functions for line-of-business applications.
62
+
Managed identities are available for the following connections:
49
63
50
-
-**Migration support**: Migration of on-premises legacy and/or monolith applications to cloud native microservices on containers.
-[Azure Container Registry](/azure/azure-functions/functions-deploy-container-apps?tabs=acr): When running in Container Apps, you can use Microsoft Entra ID with managed identities for all binding extensions that support managed identities. Currently, only these binding extensions support event-driven scaling when using managed identity authentication:
66
+
- Azure Event Hubs
67
+
- Azure Queue Storage
68
+
- Azure Service Bus
51
69
52
-
-**Event-driven architecture**: Supports event-driven applications for workloads already running on Azure Container Apps.
70
+
For other bindings, use fixed replicas when using managed identity authentication. For more information, see the [Functions developer guide](/azure/azure-functions/functions-reference).
53
71
54
-
-**Serverless workloads**: Serverless workload processing of videos, images, transcripts, or any other processing intensive tasks that required GPU compute resources.
72
+
## Application logging
55
73
56
-
## Making a selection
74
+
You can monitor your containerized function app hosted in Container Apps using Azure Monitor Application Insights in the same way you do with apps hosted by Azure Functions. For more information, see [Monitor Azure Functions](/azure/azure-functions/monitor-functions).
57
75
58
-
TODO: functions vs. jobs
76
+
For bindings that support event-driven scaling, scale events are logged as `FunctionsScalerInfo` and `FunctionsScalerError` events in your Log Analytics workspace. For more information, see [Application Logging in Azure Container Apps](./logging.md).
Copy file name to clipboardExpand all lines: articles/container-apps/functions-usage.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: azure-container-apps
7
7
ms.topic: how-to
8
-
ms.date: 03/31/2025
8
+
ms.date: 04/03/2025
9
9
ms.author: cshoe
10
10
zone_pivot_groups: azure-cli-or-portal
11
11
---
@@ -23,6 +23,8 @@ This article shows you how to create an [Azure Functions app in Azure Container
23
23
24
24
## Create a Functions app
25
25
26
+
The following steps show you how to use a sample container image to create your container app. If you want to use this procedure with a custom container image, see [Create your first Azure Function on Azure Container Apps](https://github.com/Azure/azure-functions-on-container-apps/blob/main/README.md#create-your-first-azure-function-on-azure-container-apps) and [Functions in containers](/azure/azure-functions/functions-container-apps-hosting).
27
+
26
28
1. Go to the Azure portal and search for **Container Apps** in the search bar.
27
29
28
30
1. Select **Container Apps**.
@@ -76,9 +78,16 @@ This article shows you how to create an [Azure Functions app in Azure Container
76
78
| Registry login server | Enter **mcr.microsoft.com**|
77
79
| Image and tag | Enter **azure-functions/dotnet8-quickstart-demo:1.0**|
78
80
79
-
1. For *Development stack*, select **.NET**.
81
+
1. Under *Environment variables* enter values for the following variables:
82
+
83
+
-`AzureWebJobsStorage`
84
+
-`APPINSIGHTS_INSTRUMENTATIONKEY` or `APPLICATIONINSIGHTS_CONNECTION_STRING`
85
+
86
+
Enter either Managed identity or connection string values for these variables. Managed Identity is recommended.
87
+
88
+
The `AzureWebJobsStorage` variable is a required Azure Storage account connection string for Azure Functions. This storage account stores function execution logs, manage triggers and bindings, and maintains state for durable functions.
80
89
81
-
This value is required since the sample container image is implemented in .NET.
90
+
Application Insights is a monitoring and diagnostic service that provides insights into the performance and usage of your Azure Functions. This monitoring helps you track request rates, response times, failure rates, and other metrics.
82
91
83
92
1. Select **Next > Ingress** to switch to the Ingress section and enter the following values.
0 commit comments