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-11-02-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
Initial delay, in milliseconds, before retrying a request
int
maxIntervalInMilliseconds
Maximum interval, in milliseconds, between retries
int
TcpConnectionPool
Name
Description
Value
maxConnections
Maximum number of tcp connections allowed
int
TcpRetryPolicy
Name
Description
Value
maxConnectAttempts
Maximum number of attempts to connect to the tcp service
int
TimeoutPolicy
Name
Description
Value
connectionTimeoutInSeconds
Timeout, in seconds, for a request to initiate a connection
int
responseTimeoutInSeconds
Timeout, in seconds, for a request to respond
int
Feedback
Was this page helpful?
Feedback
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.