Skip to content

Commit 1971635

Browse files
committed
add dapr config settings to ARM and YAML reference
Signed-off-by: Hannah Hunter <[email protected]>
1 parent e9f8926 commit 1971635

File tree

2 files changed

+51
-11
lines changed

2 files changed

+51
-11
lines changed

articles/container-apps/azure-resource-manager-api-spec.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: container-apps
55
author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.topic: reference
8-
ms.date: 01/23/2025
8+
ms.date: 04/09/2025
99
ms.author: cshoe
1010
ms.custom: build-2023
1111
---
@@ -148,7 +148,7 @@ A resource's `properties.configuration` object includes the following properties
148148
| `secrets` | Defines secret values in your container app. | object |
149149
| `ingress` | Object that defines public accessibility configuration of a container app. | object |
150150
| `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 |
152152

153153
Changes made to the `configuration` section are [application-scope changes](revisions.md#application-scope-changes), which doesn't trigger a new revision.
154154

@@ -253,7 +253,15 @@ The following example ARM template snippet deploys a container app.
253253
"httpReadBufferSize": 30,
254254
"httpMaxRequestSize": 10,
255255
"logLevel": "debug",
256-
"enableApiLogging": true
256+
"enableApiLogging": true,
257+
"appHealth": {
258+
"enabled": true,
259+
"path": "/health",
260+
"probeIntervalSeconds": 3,
261+
"probeTimeoutMilliseconds": 1000,
262+
"threshold": 3,
263+
},
264+
"maxConcurrency": 10
257265
},
258266
"maxInactiveRevisions": 10,
259267
"service": {
@@ -448,6 +456,13 @@ properties:
448456
httpMaxRequestSize: 10
449457
logLevel: debug
450458
enableApiLogging: true
459+
appHealth:
460+
- enabled: true
461+
- path": "/health"
462+
- probeIntervalSeconds: 3
463+
- probeTimeoutMilliseconds: 1000
464+
- threshold: 3
465+
maxConcurrency: 10
451466
maxInactiveRevisions: 10
452467
service:
453468
type: redis

articles/container-apps/enable-dapr.md

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ ms.date: 04/08/2025
1111

1212
# Configure Dapr on an existing container app
1313

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:
1517

1618
- [The Azure CLI](#using-the-cli)
1719
- [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
2931
| `--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. |
3032
| `--dapr-api-logging` | `dapr.enableApiLogging` | Enables viewing the API calls from your application to the Dapr sidecar. |
3133
| `--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`. |
3435
| `--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. |
3536
| `--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. |
3738
| `--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+
3941

4042
## Using the CLI
4143

@@ -59,7 +61,19 @@ When using an IaC template, specify the following arguments in the `properties.c
5961
appId: 'nodeapp'
6062
appProtocol: 'http'
6163
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+
}
6377
```
6478

6579
# [ARM](#tab/arm1)
@@ -69,13 +83,24 @@ When using an IaC template, specify the following arguments in the `properties.c
6983
"enabled": true,
7084
"appId": "nodeapp",
7185
"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
7399
}
74100
```
75101

76102
---
77103

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.
79104

80105
## Using the Azure portal
81106

0 commit comments

Comments
 (0)