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/azure-resource-manager-api-spec.md
+18-3Lines changed: 18 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: reference
8
-
ms.date: 01/23/2025
8
+
ms.date: 04/09/2025
9
9
ms.author: cshoe
10
10
ms.custom: build-2023
11
11
---
@@ -148,7 +148,7 @@ A resource's `properties.configuration` object includes the following properties
148
148
|`secrets`| Defines secret values in your container app. | object |
149
149
|`ingress`| Object that defines public accessibility configuration of a container app. | object |
150
150
|`registries`| Configuration object that references credentials for private container registries. Entries defined with `secretref` reference the secrets configuration object. | object |
151
-
|`dapr`| Configuration object that defines the Dapr settings for the container app. | object |
151
+
|`dapr`| Configuration object that defines the [Dapr settings for the container app](./enable-dapr.md). | object |
152
152
153
153
Changes made to the `configuration` section are [application-scope changes](revisions.md#application-scope-changes), which doesn't trigger a new revision.
154
154
@@ -253,7 +253,15 @@ The following example ARM template snippet deploys a container app.
Copy file name to clipboardExpand all lines: articles/container-apps/enable-dapr.md
+33-8Lines changed: 33 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@ ms.date: 04/08/2025
11
11
12
12
# Configure Dapr on an existing container app
13
13
14
-
You can configure Dapr using various [arguments and annotations][dapr-args] based on the runtime context. Azure Container Apps provides three channels through which you can enable Dapr:
14
+
You can configure Dapr using various [arguments and annotations][dapr-args] based on the runtime context. Dapr configurations available in Azure Container Apps are considered *application-scope* changes. When you run a container app in multiple-revision mode, changes to these settings don't create a new revision. Instead, all existing revisions are restarted to ensure they're configured with the most up-to-date values.
15
+
16
+
Azure Container Apps provides three channels through which you can enable and configure Dapr:
15
17
16
18
-[The Azure CLI](#using-the-cli)
17
19
-[Infrastructure as Code (IaC) templates,](#using-bicep-or-arm) like Bicep or Azure Resource Manager (ARM) templates
@@ -29,13 +31,13 @@ The following table outlines the currently supported list of Dapr sidecar config
29
31
|`--dapr-read-buffer-size`|`dapr.httpReadBufferSize`| Set the max size of http header read buffer in to handle when sending multi-KB headers. The default 4 KB. |
30
32
|`--dapr-api-logging`|`dapr.enableApiLogging`| Enables viewing the API calls from your application to the Dapr sidecar. |
31
33
|`--dapr-log-level`|`dapr.logLevel`| Set the log level for the Dapr sidecar. Allowed values: debug, error, info, warn. Default is `info`. |
32
-
|`--dapr-app-health-enabled`|`dapr.appHealth.enabled`| Enable app health checks for your container app using Boolean format. Default setting is `false`. |
33
-
|`--dapr-app-health-enabled`|`dapr.appHealth.enabled`| Enable app health checks for your container app using Boolean format. Default setting is `false`. |
34
+
|`--dapr-app-health-enabled`|`dapr.appHealth.enabled`| Optional configuration to enable app health checks for your container app using Boolean format. Default setting is `false`. |
34
35
|`--dapr-app-health-path`|`dapr.appHealth.path`| Set the path that Dapr invokes for health probes when the app channel is HTTP. This value is ignored if the app channel is using gRPC. |
35
36
|`--dapr-app-health-probe-interval`|`dapr.appHealth.probeIntervalSeconds`| Number of seconds between each health probe. |
36
-
|`--dapr-app-health-probe-timeout`|`dapr.appHealth.probeTimeoutMilliseconds`| Timeout in milliseconds for health probe requests. |
37
+
|`--dapr-app-health-probe-timeout`|`dapr.appHealth.probeTimeoutMilliseconds`| Timeout in milliseconds for health probe requests. This value must be smaller than the `probeIntervalSeconds` value.|
37
38
|`--dapr-app-health-threshold`|`dapr.appHealth.threshold`| Max number of consecutive failures before the app is considered healthy. |
38
-
|`--dapr-max-concurrency`|`dapr.maxConcurrency`| Limit the concurrency of your application. A valid value is any number larger than `0`. Default value is `-1`, meaning no concurrency. |
39
+
|`--dapr-max-concurrency`|`dapr.maxConcurrency`| Limit the concurrency of your application. A valid value is any number larger than `0`. `-1` means no concurrency. |
40
+
39
41
40
42
## Using the CLI
41
43
@@ -59,7 +61,19 @@ When using an IaC template, specify the following arguments in the `properties.c
59
61
appId: 'nodeapp'
60
62
appProtocol: 'http'
61
63
appPort: 3000
62
-
}
64
+
httpReadBufferSize": 30
65
+
httpMaxRequestSize": 10
66
+
logLevel: 'debug'
67
+
enableApiLogging": true
68
+
appHealth": {
69
+
enabled": true
70
+
path": "/health"
71
+
probeIntervalSeconds: 3
72
+
probeTimeoutMilliseconds: 1000
73
+
threshold: 3
74
+
},
75
+
"maxConcurrency": 10
76
+
}
63
77
```
64
78
65
79
# [ARM](#tab/arm1)
@@ -69,13 +83,24 @@ When using an IaC template, specify the following arguments in the `properties.c
69
83
"enabled": true,
70
84
"appId": "nodeapp",
71
85
"appProtocol": "http",
72
-
"appPort": 3000
86
+
"appPort": 3000,
87
+
"httpReadBufferSize": 30,
88
+
"httpMaxRequestSize": 10,
89
+
"logLevel": "debug",
90
+
"enableApiLogging": true,
91
+
"appHealth": {
92
+
"enabled": true,
93
+
"path": "/health",
94
+
"probeIntervalSeconds": 3,
95
+
"probeTimeoutMilliseconds": 1000,
96
+
"threshold": 3,
97
+
},
98
+
"maxConcurrency": 10
73
99
}
74
100
```
75
101
76
102
---
77
103
78
-
The above Dapr configuration values are considered application-scope changes. When you run a container app in multiple-revision mode, changes to these settings don't create a new revision. Instead, all existing revisions are restarted to ensure they're configured with the most up-to-date values.
0 commit comments