For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.App/containerApps/resiliencyPolicies resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.App/containerApps/resiliencyPolicies@2023-08-01-preview' = {
name: 'string'
parent: resourceSymbolicName
properties: {
circuitBreakerPolicy: {
consecutiveErrors: int
intervalInSeconds: int
maxEjectionPercent: int
}
httpConnectionPool: {
http1MaxPendingRequests: int
http2MaxRequests: int
}
httpRetryPolicy: {
matches: {
errors: [
'string'
]
headers: [
{
header: 'string'
match: {
exactMatch: 'string'
prefixMatch: 'string'
regexMatch: 'string'
suffixMatch: 'string'
}
}
]
httpStatusCodes: [
int
]
}
maxRetries: int
retryBackOff: {
initialDelayInMilliseconds: int
maxIntervalInMilliseconds: int
}
}
tcpConnectionPool: {
maxConnections: int
}
tcpRetryPolicy: {
maxConnectAttempts: int
}
timeoutPolicy: {
connectionTimeoutInSeconds: int
responseTimeoutInSeconds: int
}
}
}
Property values
containerApps/resiliencyPolicies
Name
Description
Value
name
The resource name
See how to set names and types for child resources in Bicep.
string (required)
parent
In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.
Number of consecutive errors before the circuit breaker opens
int
intervalInSeconds
The time interval, in seconds, between endpoint checks. This can result in opening the circuit breaker if the check fails as well as closing the circuit breaker if the check succeeds. Defaults to 10s.
int
maxEjectionPercent
Maximum percentage of hosts that will be ejected after failure threshold has been met
int
HttpConnectionPool
Name
Description
Value
http1MaxPendingRequests
Maximum number of pending http1 requests allowed
int
http2MaxRequests
Maximum number of http2 requests allowed
int
HttpRetryPolicy
Name
Description
Value
matches
Conditions that must be met for a request to be retried
Number of consecutive errors before the circuit breaker opens
int
intervalInSeconds
The time interval, in seconds, between endpoint checks. This can result in opening the circuit breaker if the check fails as well as closing the circuit breaker if the check succeeds. Defaults to 10s.
int
maxEjectionPercent
Maximum percentage of hosts that will be ejected after failure threshold has been met
int
HttpConnectionPool
Name
Description
Value
http1MaxPendingRequests
Maximum number of pending http1 requests allowed
int
http2MaxRequests
Maximum number of http2 requests allowed
int
HttpRetryPolicy
Name
Description
Value
matches
Conditions that must be met for a request to be retried
Number of consecutive errors before the circuit breaker opens
int
intervalInSeconds
The time interval, in seconds, between endpoint checks. This can result in opening the circuit breaker if the check fails as well as closing the circuit breaker if the check succeeds. Defaults to 10s.
int
maxEjectionPercent
Maximum percentage of hosts that will be ejected after failure threshold has been met
int
HttpConnectionPool
Name
Description
Value
http1MaxPendingRequests
Maximum number of pending http1 requests allowed
int
http2MaxRequests
Maximum number of http2 requests allowed
int
HttpRetryPolicy
Name
Description
Value
matches
Conditions that must be met for a request to be retried