ARM template resource definition
The managedEnvironments/daprSubscriptions resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.App/managedEnvironments/daprSubscriptions resource, add the following JSON to your template.
{
"type": "Microsoft.App/managedEnvironments/daprSubscriptions",
"apiVersion": "2023-11-02-preview",
"name": "string",
"properties": {
"bulkSubscribe": {
"enabled": "bool",
"maxAwaitDurationMs": "int",
"maxMessagesCount": "int"
},
"deadLetterTopic": "string",
"metadata": {
"{customized property}": "string"
},
"pubsubName": "string",
"routes": {
"default": "string",
"rules": [
{
"match": "string",
"path": "string"
}
]
},
"scopes": [ "string" ],
"topic": "string"
}
}
Property values
managedEnvironments/daprSubscriptions
Name |
Description |
Value |
type |
The resource type |
'Microsoft.App/managedEnvironments/daprSubscriptions' |
apiVersion |
The resource api version |
'2023-11-02-preview' |
name |
The resource name
See how to set names and types for child resources in JSON ARM templates. |
string (required) |
properties |
Dapr PubSub Event Subscription resource specific properties |
DaprSubscriptionProperties |
DaprSubscriptionProperties
DaprSubscriptionBulkSubscribeOptions
Name |
Description |
Value |
enabled |
Enable bulk subscription |
bool |
maxAwaitDurationMs |
Maximum duration in milliseconds to wait before a bulk message is sent to the app. |
int |
maxMessagesCount |
Maximum number of messages to deliver in a bulk message. |
int |
Name |
Description |
Value |
{customized property} |
|
string |
DaprSubscriptionRoutes
Name |
Description |
Value |
default |
The default path to deliver events that do not match any of the rules. |
string |
rules |
The list of Dapr PubSub Event Subscription Route Rules. |
DaprSubscriptionRouteRule[] |
DaprSubscriptionRouteRule
Name |
Description |
Value |
match |
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list. |
string |
path |
The path for events that match this rule |
string |