Microsoft.App managedEnvironments/daprComponents/resiliencyPolicies 2023-11-02-preview
Article 08/01/2024
1 contributor
Feedback
In this article
Bicep 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 Bicep to your template.
resource symbolicname 'Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies@2023-11-02-preview' = {
name: 'string'
parent: resourceSymbolicName
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
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. For more information, see Child resource outside parent resource .
Symbolic name for resource of type: daprComponents
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
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
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 Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies@2023-11-02-preview"
name = "string"
parent_id = "string"
body = jsonencode({
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@2023-11-02-preview"
name
The resource name
string (required)
parent_id
The ID of the resource that is the parent for this resource.
ID for resource of type: daprComponents
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