ARM template resource definition
The managedEnvironments/daprComponents/resiliencyPolicies 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/daprComponents/resiliencyPolicies resource, add the following JSON to your template.
{
"type": "Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies",
"apiVersion": "2023-11-02-preview",
"name": "string",
"properties": {
"inboundPolicy": {
"circuitBreakerPolicy": {
"consecutiveErrors": "int",
"intervalInSeconds": "int",
"timeoutInSeconds": "int"
},
"httpRetryPolicy": {
"maxRetries": "int",
"retryBackOff": {
"initialDelayInMilliseconds": "int",
"maxIntervalInMilliseconds": "int"
}
},
"timeoutPolicy": {
"responseTimeoutInSeconds": "int"
}
},
"outboundPolicy": {
"circuitBreakerPolicy": {
"consecutiveErrors": "int",
"intervalInSeconds": "int",
"timeoutInSeconds": "int"
},
"httpRetryPolicy": {
"maxRetries": "int",
"retryBackOff": {
"initialDelayInMilliseconds": "int",
"maxIntervalInMilliseconds": "int"
}
},
"timeoutPolicy": {
"responseTimeoutInSeconds": "int"
}
}
}
}
Property values
managedEnvironments/daprComponents/resiliencyPolicie...
Name |
Description |
Value |
type |
The resource type |
'Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies' |
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 Component Resiliency Policy resource specific properties |
DaprComponentResiliencyPolicyProperties |
DaprComponentResiliencyPolicyProperties
DaprComponentResiliencyPolicyConfiguration
DaprComponentResiliencyPolicyCircuitBreakerPolicyCon...
Name |
Description |
Value |
consecutiveErrors |
The number of consecutive errors before the circuit is opened. |
int |
intervalInSeconds |
The optional interval in seconds after which the error count resets to 0. An interval of 0 will never reset. If not specified, the timeoutInSeconds value will be used. |
int |
timeoutInSeconds |
The interval in seconds until a retry attempt is made after the circuit is opened. |
int |
DaprComponentResiliencyPolicyHttpRetryPolicyConfigur...
DaprComponentResiliencyPolicyHttpRetryBackOffConfigu...
Name |
Description |
Value |
initialDelayInMilliseconds |
The optional initial delay in milliseconds before an operation is retried |
int |
maxIntervalInMilliseconds |
The optional maximum time interval in milliseconds between retry attempts |
int |
DaprComponentResiliencyPolicyTimeoutPolicyConfigurat...
Name |
Description |
Value |
responseTimeoutInSeconds |
The optional response timeout in seconds |
int |