1. Packages
  2. Azure Native
  3. API Docs
  4. app
  5. AppResiliency
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.app.AppResiliency

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Configuration to setup App Resiliency

Uses Azure REST API version 2024-10-02-preview. In version 2.x of the Azure Native provider, it used API version 2023-08-01-preview.

Other available API versions: 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-08-02-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native app [ApiVersion]. See the version guide for details.

Example Usage

Create or Update App Resiliency

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var appResiliency = new AzureNative.App.AppResiliency("appResiliency", new()
    {
        AppName = "testcontainerApp0",
        CircuitBreakerPolicy = new AzureNative.App.Inputs.CircuitBreakerPolicyArgs
        {
            ConsecutiveErrors = 5,
            IntervalInSeconds = 10,
            MaxEjectionPercent = 50,
        },
        HttpConnectionPool = new AzureNative.App.Inputs.HttpConnectionPoolArgs
        {
            Http1MaxPendingRequests = 1024,
            Http2MaxRequests = 1024,
        },
        HttpRetryPolicy = new AzureNative.App.Inputs.HttpRetryPolicyArgs
        {
            Errors = new[]
            {
                "5xx",
                "connect-failure",
                "reset",
                "retriable-headers",
                "retriable-status-codes",
            },
            Headers = new[]
            {
                new AzureNative.App.Inputs.HeaderMatchArgs
                {
                    Header = "X-Content-Type",
                    PrefixMatch = "GOATS",
                },
            },
            HttpStatusCodes = new[]
            {
                502,
                503,
            },
            InitialDelayInMilliseconds = 1000,
            MaxIntervalInMilliseconds = 10000,
            MaxRetries = 5,
        },
        Name = "resiliency-policy-1",
        ResourceGroupName = "rg",
        TcpConnectionPool = new AzureNative.App.Inputs.TcpConnectionPoolArgs
        {
            MaxConnections = 100,
        },
        TcpRetryPolicy = new AzureNative.App.Inputs.TcpRetryPolicyArgs
        {
            MaxConnectAttempts = 3,
        },
        TimeoutPolicy = new AzureNative.App.Inputs.TimeoutPolicyArgs
        {
            ConnectionTimeoutInSeconds = 5,
            ResponseTimeoutInSeconds = 15,
        },
    });

});
Copy
package main

import (
	app "github.com/pulumi/pulumi-azure-native-sdk/app/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := app.NewAppResiliency(ctx, "appResiliency", &app.AppResiliencyArgs{
			AppName: pulumi.String("testcontainerApp0"),
			CircuitBreakerPolicy: &app.CircuitBreakerPolicyArgs{
				ConsecutiveErrors:  pulumi.Int(5),
				IntervalInSeconds:  pulumi.Int(10),
				MaxEjectionPercent: pulumi.Int(50),
			},
			HttpConnectionPool: &app.HttpConnectionPoolArgs{
				Http1MaxPendingRequests: pulumi.Int(1024),
				Http2MaxRequests:        pulumi.Int(1024),
			},
			HttpRetryPolicy: &app.HttpRetryPolicyArgs{
				Errors: pulumi.StringArray{
					pulumi.String("5xx"),
					pulumi.String("connect-failure"),
					pulumi.String("reset"),
					pulumi.String("retriable-headers"),
					pulumi.String("retriable-status-codes"),
				},
				Headers: app.HeaderMatchArray{
					&app.HeaderMatchArgs{
						Header:      pulumi.String("X-Content-Type"),
						PrefixMatch: pulumi.String("GOATS"),
					},
				},
				HttpStatusCodes: pulumi.IntArray{
					pulumi.Int(502),
					pulumi.Int(503),
				},
				InitialDelayInMilliseconds: pulumi.Float64(1000),
				MaxIntervalInMilliseconds:  pulumi.Float64(10000),
				MaxRetries:                 pulumi.Int(5),
			},
			Name:              pulumi.String("resiliency-policy-1"),
			ResourceGroupName: pulumi.String("rg"),
			TcpConnectionPool: &app.TcpConnectionPoolArgs{
				MaxConnections: pulumi.Int(100),
			},
			TcpRetryPolicy: &app.TcpRetryPolicyArgs{
				MaxConnectAttempts: pulumi.Int(3),
			},
			TimeoutPolicy: &app.TimeoutPolicyArgs{
				ConnectionTimeoutInSeconds: pulumi.Int(5),
				ResponseTimeoutInSeconds:   pulumi.Int(15),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.app.AppResiliency;
import com.pulumi.azurenative.app.AppResiliencyArgs;
import com.pulumi.azurenative.app.inputs.CircuitBreakerPolicyArgs;
import com.pulumi.azurenative.app.inputs.HttpConnectionPoolArgs;
import com.pulumi.azurenative.app.inputs.HttpRetryPolicyArgs;
import com.pulumi.azurenative.app.inputs.TcpConnectionPoolArgs;
import com.pulumi.azurenative.app.inputs.TcpRetryPolicyArgs;
import com.pulumi.azurenative.app.inputs.TimeoutPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var appResiliency = new AppResiliency("appResiliency", AppResiliencyArgs.builder()
            .appName("testcontainerApp0")
            .circuitBreakerPolicy(CircuitBreakerPolicyArgs.builder()
                .consecutiveErrors(5)
                .intervalInSeconds(10)
                .maxEjectionPercent(50)
                .build())
            .httpConnectionPool(HttpConnectionPoolArgs.builder()
                .http1MaxPendingRequests(1024)
                .http2MaxRequests(1024)
                .build())
            .httpRetryPolicy(HttpRetryPolicyArgs.builder()
                .errors(                
                    "5xx",
                    "connect-failure",
                    "reset",
                    "retriable-headers",
                    "retriable-status-codes")
                .headers(HeaderMatchArgs.builder()
                    .header("X-Content-Type")
                    .prefixMatch("GOATS")
                    .build())
                .httpStatusCodes(                
                    502,
                    503)
                .initialDelayInMilliseconds(1000.0)
                .maxIntervalInMilliseconds(10000.0)
                .maxRetries(5)
                .build())
            .name("resiliency-policy-1")
            .resourceGroupName("rg")
            .tcpConnectionPool(TcpConnectionPoolArgs.builder()
                .maxConnections(100)
                .build())
            .tcpRetryPolicy(TcpRetryPolicyArgs.builder()
                .maxConnectAttempts(3)
                .build())
            .timeoutPolicy(TimeoutPolicyArgs.builder()
                .connectionTimeoutInSeconds(5)
                .responseTimeoutInSeconds(15)
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const appResiliency = new azure_native.app.AppResiliency("appResiliency", {
    appName: "testcontainerApp0",
    circuitBreakerPolicy: {
        consecutiveErrors: 5,
        intervalInSeconds: 10,
        maxEjectionPercent: 50,
    },
    httpConnectionPool: {
        http1MaxPendingRequests: 1024,
        http2MaxRequests: 1024,
    },
    httpRetryPolicy: {
        errors: [
            "5xx",
            "connect-failure",
            "reset",
            "retriable-headers",
            "retriable-status-codes",
        ],
        headers: [{
            header: "X-Content-Type",
            prefixMatch: "GOATS",
        }],
        httpStatusCodes: [
            502,
            503,
        ],
        initialDelayInMilliseconds: 1000,
        maxIntervalInMilliseconds: 10000,
        maxRetries: 5,
    },
    name: "resiliency-policy-1",
    resourceGroupName: "rg",
    tcpConnectionPool: {
        maxConnections: 100,
    },
    tcpRetryPolicy: {
        maxConnectAttempts: 3,
    },
    timeoutPolicy: {
        connectionTimeoutInSeconds: 5,
        responseTimeoutInSeconds: 15,
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

app_resiliency = azure_native.app.AppResiliency("appResiliency",
    app_name="testcontainerApp0",
    circuit_breaker_policy={
        "consecutive_errors": 5,
        "interval_in_seconds": 10,
        "max_ejection_percent": 50,
    },
    http_connection_pool={
        "http1_max_pending_requests": 1024,
        "http2_max_requests": 1024,
    },
    http_retry_policy={
        "errors": [
            "5xx",
            "connect-failure",
            "reset",
            "retriable-headers",
            "retriable-status-codes",
        ],
        "headers": [{
            "header": "X-Content-Type",
            "prefix_match": "GOATS",
        }],
        "http_status_codes": [
            502,
            503,
        ],
        "initial_delay_in_milliseconds": 1000,
        "max_interval_in_milliseconds": 10000,
        "max_retries": 5,
    },
    name="resiliency-policy-1",
    resource_group_name="rg",
    tcp_connection_pool={
        "max_connections": 100,
    },
    tcp_retry_policy={
        "max_connect_attempts": 3,
    },
    timeout_policy={
        "connection_timeout_in_seconds": 5,
        "response_timeout_in_seconds": 15,
    })
Copy
resources:
  appResiliency:
    type: azure-native:app:AppResiliency
    properties:
      appName: testcontainerApp0
      circuitBreakerPolicy:
        consecutiveErrors: 5
        intervalInSeconds: 10
        maxEjectionPercent: 50
      httpConnectionPool:
        http1MaxPendingRequests: 1024
        http2MaxRequests: 1024
      httpRetryPolicy:
        errors:
          - 5xx
          - connect-failure
          - reset
          - retriable-headers
          - retriable-status-codes
        headers:
          - header: X-Content-Type
            prefixMatch: GOATS
        httpStatusCodes:
          - 502
          - 503
        initialDelayInMilliseconds: 1000
        maxIntervalInMilliseconds: 10000
        maxRetries: 5
      name: resiliency-policy-1
      resourceGroupName: rg
      tcpConnectionPool:
        maxConnections: 100
      tcpRetryPolicy:
        maxConnectAttempts: 3
      timeoutPolicy:
        connectionTimeoutInSeconds: 5
        responseTimeoutInSeconds: 15
Copy

Create AppResiliency Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AppResiliency(name: string, args: AppResiliencyArgs, opts?: CustomResourceOptions);
@overload
def AppResiliency(resource_name: str,
                  args: AppResiliencyArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def AppResiliency(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  app_name: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  circuit_breaker_policy: Optional[CircuitBreakerPolicyArgs] = None,
                  http_connection_pool: Optional[HttpConnectionPoolArgs] = None,
                  http_retry_policy: Optional[HttpRetryPolicyArgs] = None,
                  name: Optional[str] = None,
                  tcp_connection_pool: Optional[TcpConnectionPoolArgs] = None,
                  tcp_retry_policy: Optional[TcpRetryPolicyArgs] = None,
                  timeout_policy: Optional[TimeoutPolicyArgs] = None)
func NewAppResiliency(ctx *Context, name string, args AppResiliencyArgs, opts ...ResourceOption) (*AppResiliency, error)
public AppResiliency(string name, AppResiliencyArgs args, CustomResourceOptions? opts = null)
public AppResiliency(String name, AppResiliencyArgs args)
public AppResiliency(String name, AppResiliencyArgs args, CustomResourceOptions options)
type: azure-native:app:AppResiliency
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AppResiliencyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AppResiliencyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AppResiliencyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AppResiliencyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AppResiliencyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var appResiliencyResource = new AzureNative.App.AppResiliency("appResiliencyResource", new()
{
    AppName = "string",
    ResourceGroupName = "string",
    CircuitBreakerPolicy = new AzureNative.App.Inputs.CircuitBreakerPolicyArgs
    {
        ConsecutiveErrors = 0,
        IntervalInSeconds = 0,
        MaxEjectionPercent = 0,
    },
    HttpConnectionPool = new AzureNative.App.Inputs.HttpConnectionPoolArgs
    {
        Http1MaxPendingRequests = 0,
        Http2MaxRequests = 0,
    },
    HttpRetryPolicy = new AzureNative.App.Inputs.HttpRetryPolicyArgs
    {
        Errors = new[]
        {
            "string",
        },
        Headers = new[]
        {
            new AzureNative.App.Inputs.HeaderMatchArgs
            {
                ExactMatch = "string",
                Header = "string",
                PrefixMatch = "string",
                RegexMatch = "string",
                SuffixMatch = "string",
            },
        },
        HttpStatusCodes = new[]
        {
            0,
        },
        InitialDelayInMilliseconds = 0,
        MaxIntervalInMilliseconds = 0,
        MaxRetries = 0,
    },
    Name = "string",
    TcpConnectionPool = new AzureNative.App.Inputs.TcpConnectionPoolArgs
    {
        MaxConnections = 0,
    },
    TcpRetryPolicy = new AzureNative.App.Inputs.TcpRetryPolicyArgs
    {
        MaxConnectAttempts = 0,
    },
    TimeoutPolicy = new AzureNative.App.Inputs.TimeoutPolicyArgs
    {
        ConnectionTimeoutInSeconds = 0,
        ResponseTimeoutInSeconds = 0,
    },
});
Copy
example, err := app.NewAppResiliency(ctx, "appResiliencyResource", &app.AppResiliencyArgs{
	AppName:           pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	CircuitBreakerPolicy: &app.CircuitBreakerPolicyArgs{
		ConsecutiveErrors:  pulumi.Int(0),
		IntervalInSeconds:  pulumi.Int(0),
		MaxEjectionPercent: pulumi.Int(0),
	},
	HttpConnectionPool: &app.HttpConnectionPoolArgs{
		Http1MaxPendingRequests: pulumi.Int(0),
		Http2MaxRequests:        pulumi.Int(0),
	},
	HttpRetryPolicy: &app.HttpRetryPolicyArgs{
		Errors: pulumi.StringArray{
			pulumi.String("string"),
		},
		Headers: app.HeaderMatchArray{
			&app.HeaderMatchArgs{
				ExactMatch:  pulumi.String("string"),
				Header:      pulumi.String("string"),
				PrefixMatch: pulumi.String("string"),
				RegexMatch:  pulumi.String("string"),
				SuffixMatch: pulumi.String("string"),
			},
		},
		HttpStatusCodes: pulumi.IntArray{
			pulumi.Int(0),
		},
		InitialDelayInMilliseconds: pulumi.Float64(0),
		MaxIntervalInMilliseconds:  pulumi.Float64(0),
		MaxRetries:                 pulumi.Int(0),
	},
	Name: pulumi.String("string"),
	TcpConnectionPool: &app.TcpConnectionPoolArgs{
		MaxConnections: pulumi.Int(0),
	},
	TcpRetryPolicy: &app.TcpRetryPolicyArgs{
		MaxConnectAttempts: pulumi.Int(0),
	},
	TimeoutPolicy: &app.TimeoutPolicyArgs{
		ConnectionTimeoutInSeconds: pulumi.Int(0),
		ResponseTimeoutInSeconds:   pulumi.Int(0),
	},
})
Copy
var appResiliencyResource = new AppResiliency("appResiliencyResource", AppResiliencyArgs.builder()
    .appName("string")
    .resourceGroupName("string")
    .circuitBreakerPolicy(CircuitBreakerPolicyArgs.builder()
        .consecutiveErrors(0)
        .intervalInSeconds(0)
        .maxEjectionPercent(0)
        .build())
    .httpConnectionPool(HttpConnectionPoolArgs.builder()
        .http1MaxPendingRequests(0)
        .http2MaxRequests(0)
        .build())
    .httpRetryPolicy(HttpRetryPolicyArgs.builder()
        .errors("string")
        .headers(HeaderMatchArgs.builder()
            .exactMatch("string")
            .header("string")
            .prefixMatch("string")
            .regexMatch("string")
            .suffixMatch("string")
            .build())
        .httpStatusCodes(0)
        .initialDelayInMilliseconds(0)
        .maxIntervalInMilliseconds(0)
        .maxRetries(0)
        .build())
    .name("string")
    .tcpConnectionPool(TcpConnectionPoolArgs.builder()
        .maxConnections(0)
        .build())
    .tcpRetryPolicy(TcpRetryPolicyArgs.builder()
        .maxConnectAttempts(0)
        .build())
    .timeoutPolicy(TimeoutPolicyArgs.builder()
        .connectionTimeoutInSeconds(0)
        .responseTimeoutInSeconds(0)
        .build())
    .build());
Copy
app_resiliency_resource = azure_native.app.AppResiliency("appResiliencyResource",
    app_name="string",
    resource_group_name="string",
    circuit_breaker_policy={
        "consecutive_errors": 0,
        "interval_in_seconds": 0,
        "max_ejection_percent": 0,
    },
    http_connection_pool={
        "http1_max_pending_requests": 0,
        "http2_max_requests": 0,
    },
    http_retry_policy={
        "errors": ["string"],
        "headers": [{
            "exact_match": "string",
            "header": "string",
            "prefix_match": "string",
            "regex_match": "string",
            "suffix_match": "string",
        }],
        "http_status_codes": [0],
        "initial_delay_in_milliseconds": 0,
        "max_interval_in_milliseconds": 0,
        "max_retries": 0,
    },
    name="string",
    tcp_connection_pool={
        "max_connections": 0,
    },
    tcp_retry_policy={
        "max_connect_attempts": 0,
    },
    timeout_policy={
        "connection_timeout_in_seconds": 0,
        "response_timeout_in_seconds": 0,
    })
Copy
const appResiliencyResource = new azure_native.app.AppResiliency("appResiliencyResource", {
    appName: "string",
    resourceGroupName: "string",
    circuitBreakerPolicy: {
        consecutiveErrors: 0,
        intervalInSeconds: 0,
        maxEjectionPercent: 0,
    },
    httpConnectionPool: {
        http1MaxPendingRequests: 0,
        http2MaxRequests: 0,
    },
    httpRetryPolicy: {
        errors: ["string"],
        headers: [{
            exactMatch: "string",
            header: "string",
            prefixMatch: "string",
            regexMatch: "string",
            suffixMatch: "string",
        }],
        httpStatusCodes: [0],
        initialDelayInMilliseconds: 0,
        maxIntervalInMilliseconds: 0,
        maxRetries: 0,
    },
    name: "string",
    tcpConnectionPool: {
        maxConnections: 0,
    },
    tcpRetryPolicy: {
        maxConnectAttempts: 0,
    },
    timeoutPolicy: {
        connectionTimeoutInSeconds: 0,
        responseTimeoutInSeconds: 0,
    },
});
Copy
type: azure-native:app:AppResiliency
properties:
    appName: string
    circuitBreakerPolicy:
        consecutiveErrors: 0
        intervalInSeconds: 0
        maxEjectionPercent: 0
    httpConnectionPool:
        http1MaxPendingRequests: 0
        http2MaxRequests: 0
    httpRetryPolicy:
        errors:
            - string
        headers:
            - exactMatch: string
              header: string
              prefixMatch: string
              regexMatch: string
              suffixMatch: string
        httpStatusCodes:
            - 0
        initialDelayInMilliseconds: 0
        maxIntervalInMilliseconds: 0
        maxRetries: 0
    name: string
    resourceGroupName: string
    tcpConnectionPool:
        maxConnections: 0
    tcpRetryPolicy:
        maxConnectAttempts: 0
    timeoutPolicy:
        connectionTimeoutInSeconds: 0
        responseTimeoutInSeconds: 0
Copy

AppResiliency Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AppResiliency resource accepts the following input properties:

AppName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Container App.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
CircuitBreakerPolicy Pulumi.AzureNative.App.Inputs.CircuitBreakerPolicy
Policy that defines circuit breaker conditions
HttpConnectionPool Pulumi.AzureNative.App.Inputs.HttpConnectionPool
Defines parameters for http connection pooling
HttpRetryPolicy Pulumi.AzureNative.App.Inputs.HttpRetryPolicy
Policy that defines http request retry conditions
Name Changes to this property will trigger replacement. string
Name of the resiliency policy.
TcpConnectionPool Pulumi.AzureNative.App.Inputs.TcpConnectionPool
Defines parameters for tcp connection pooling
TcpRetryPolicy Pulumi.AzureNative.App.Inputs.TcpRetryPolicy
Policy that defines tcp request retry conditions
TimeoutPolicy Pulumi.AzureNative.App.Inputs.TimeoutPolicy
Policy to set request timeouts
AppName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Container App.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
CircuitBreakerPolicy CircuitBreakerPolicyArgs
Policy that defines circuit breaker conditions
HttpConnectionPool HttpConnectionPoolArgs
Defines parameters for http connection pooling
HttpRetryPolicy HttpRetryPolicyArgs
Policy that defines http request retry conditions
Name Changes to this property will trigger replacement. string
Name of the resiliency policy.
TcpConnectionPool TcpConnectionPoolArgs
Defines parameters for tcp connection pooling
TcpRetryPolicy TcpRetryPolicyArgs
Policy that defines tcp request retry conditions
TimeoutPolicy TimeoutPolicyArgs
Policy to set request timeouts
appName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Container App.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
circuitBreakerPolicy CircuitBreakerPolicy
Policy that defines circuit breaker conditions
httpConnectionPool HttpConnectionPool
Defines parameters for http connection pooling
httpRetryPolicy HttpRetryPolicy
Policy that defines http request retry conditions
name Changes to this property will trigger replacement. String
Name of the resiliency policy.
tcpConnectionPool TcpConnectionPool
Defines parameters for tcp connection pooling
tcpRetryPolicy TcpRetryPolicy
Policy that defines tcp request retry conditions
timeoutPolicy TimeoutPolicy
Policy to set request timeouts
appName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Container App.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
circuitBreakerPolicy CircuitBreakerPolicy
Policy that defines circuit breaker conditions
httpConnectionPool HttpConnectionPool
Defines parameters for http connection pooling
httpRetryPolicy HttpRetryPolicy
Policy that defines http request retry conditions
name Changes to this property will trigger replacement. string
Name of the resiliency policy.
tcpConnectionPool TcpConnectionPool
Defines parameters for tcp connection pooling
tcpRetryPolicy TcpRetryPolicy
Policy that defines tcp request retry conditions
timeoutPolicy TimeoutPolicy
Policy to set request timeouts
app_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Container App.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
circuit_breaker_policy CircuitBreakerPolicyArgs
Policy that defines circuit breaker conditions
http_connection_pool HttpConnectionPoolArgs
Defines parameters for http connection pooling
http_retry_policy HttpRetryPolicyArgs
Policy that defines http request retry conditions
name Changes to this property will trigger replacement. str
Name of the resiliency policy.
tcp_connection_pool TcpConnectionPoolArgs
Defines parameters for tcp connection pooling
tcp_retry_policy TcpRetryPolicyArgs
Policy that defines tcp request retry conditions
timeout_policy TimeoutPolicyArgs
Policy to set request timeouts
appName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Container App.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
circuitBreakerPolicy Property Map
Policy that defines circuit breaker conditions
httpConnectionPool Property Map
Defines parameters for http connection pooling
httpRetryPolicy Property Map
Policy that defines http request retry conditions
name Changes to this property will trigger replacement. String
Name of the resiliency policy.
tcpConnectionPool Property Map
Defines parameters for tcp connection pooling
tcpRetryPolicy Property Map
Policy that defines tcp request retry conditions
timeoutPolicy Property Map
Policy to set request timeouts

Outputs

All input properties are implicitly available as output properties. Additionally, the AppResiliency resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
SystemData Pulumi.AzureNative.App.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

CircuitBreakerPolicy
, CircuitBreakerPolicyArgs

ConsecutiveErrors int
Number of consecutive errors before the circuit breaker opens
IntervalInSeconds int
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.
MaxEjectionPercent int
Maximum percentage of hosts that will be ejected after failure threshold has been met
ConsecutiveErrors int
Number of consecutive errors before the circuit breaker opens
IntervalInSeconds int
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.
MaxEjectionPercent int
Maximum percentage of hosts that will be ejected after failure threshold has been met
consecutiveErrors Integer
Number of consecutive errors before the circuit breaker opens
intervalInSeconds Integer
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.
maxEjectionPercent Integer
Maximum percentage of hosts that will be ejected after failure threshold has been met
consecutiveErrors number
Number of consecutive errors before the circuit breaker opens
intervalInSeconds number
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.
maxEjectionPercent number
Maximum percentage of hosts that will be ejected after failure threshold has been met
consecutive_errors int
Number of consecutive errors before the circuit breaker opens
interval_in_seconds int
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.
max_ejection_percent int
Maximum percentage of hosts that will be ejected after failure threshold has been met
consecutiveErrors Number
Number of consecutive errors before the circuit breaker opens
intervalInSeconds Number
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.
maxEjectionPercent Number
Maximum percentage of hosts that will be ejected after failure threshold has been met

CircuitBreakerPolicyResponse
, CircuitBreakerPolicyResponseArgs

ConsecutiveErrors int
Number of consecutive errors before the circuit breaker opens
IntervalInSeconds int
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.
MaxEjectionPercent int
Maximum percentage of hosts that will be ejected after failure threshold has been met
ConsecutiveErrors int
Number of consecutive errors before the circuit breaker opens
IntervalInSeconds int
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.
MaxEjectionPercent int
Maximum percentage of hosts that will be ejected after failure threshold has been met
consecutiveErrors Integer
Number of consecutive errors before the circuit breaker opens
intervalInSeconds Integer
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.
maxEjectionPercent Integer
Maximum percentage of hosts that will be ejected after failure threshold has been met
consecutiveErrors number
Number of consecutive errors before the circuit breaker opens
intervalInSeconds number
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.
maxEjectionPercent number
Maximum percentage of hosts that will be ejected after failure threshold has been met
consecutive_errors int
Number of consecutive errors before the circuit breaker opens
interval_in_seconds int
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.
max_ejection_percent int
Maximum percentage of hosts that will be ejected after failure threshold has been met
consecutiveErrors Number
Number of consecutive errors before the circuit breaker opens
intervalInSeconds Number
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.
maxEjectionPercent Number
Maximum percentage of hosts that will be ejected after failure threshold has been met

HeaderMatch
, HeaderMatchArgs

ExactMatch string
Exact value of the header
Header string
Name of the header
PrefixMatch string
Prefix value of the header
RegexMatch string
Regex value of the header
SuffixMatch string
Suffix value of the header
ExactMatch string
Exact value of the header
Header string
Name of the header
PrefixMatch string
Prefix value of the header
RegexMatch string
Regex value of the header
SuffixMatch string
Suffix value of the header
exactMatch String
Exact value of the header
header String
Name of the header
prefixMatch String
Prefix value of the header
regexMatch String
Regex value of the header
suffixMatch String
Suffix value of the header
exactMatch string
Exact value of the header
header string
Name of the header
prefixMatch string
Prefix value of the header
regexMatch string
Regex value of the header
suffixMatch string
Suffix value of the header
exact_match str
Exact value of the header
header str
Name of the header
prefix_match str
Prefix value of the header
regex_match str
Regex value of the header
suffix_match str
Suffix value of the header
exactMatch String
Exact value of the header
header String
Name of the header
prefixMatch String
Prefix value of the header
regexMatch String
Regex value of the header
suffixMatch String
Suffix value of the header

HeaderMatchResponse
, HeaderMatchResponseArgs

ExactMatch string
Exact value of the header
Header string
Name of the header
PrefixMatch string
Prefix value of the header
RegexMatch string
Regex value of the header
SuffixMatch string
Suffix value of the header
ExactMatch string
Exact value of the header
Header string
Name of the header
PrefixMatch string
Prefix value of the header
RegexMatch string
Regex value of the header
SuffixMatch string
Suffix value of the header
exactMatch String
Exact value of the header
header String
Name of the header
prefixMatch String
Prefix value of the header
regexMatch String
Regex value of the header
suffixMatch String
Suffix value of the header
exactMatch string
Exact value of the header
header string
Name of the header
prefixMatch string
Prefix value of the header
regexMatch string
Regex value of the header
suffixMatch string
Suffix value of the header
exact_match str
Exact value of the header
header str
Name of the header
prefix_match str
Prefix value of the header
regex_match str
Regex value of the header
suffix_match str
Suffix value of the header
exactMatch String
Exact value of the header
header String
Name of the header
prefixMatch String
Prefix value of the header
regexMatch String
Regex value of the header
suffixMatch String
Suffix value of the header

HttpConnectionPool
, HttpConnectionPoolArgs

Http1MaxPendingRequests int
Maximum number of pending http1 requests allowed
Http2MaxRequests int
Maximum number of http2 requests allowed
Http1MaxPendingRequests int
Maximum number of pending http1 requests allowed
Http2MaxRequests int
Maximum number of http2 requests allowed
http1MaxPendingRequests Integer
Maximum number of pending http1 requests allowed
http2MaxRequests Integer
Maximum number of http2 requests allowed
http1MaxPendingRequests number
Maximum number of pending http1 requests allowed
http2MaxRequests number
Maximum number of http2 requests allowed
http1_max_pending_requests int
Maximum number of pending http1 requests allowed
http2_max_requests int
Maximum number of http2 requests allowed
http1MaxPendingRequests Number
Maximum number of pending http1 requests allowed
http2MaxRequests Number
Maximum number of http2 requests allowed

HttpConnectionPoolResponse
, HttpConnectionPoolResponseArgs

Http1MaxPendingRequests int
Maximum number of pending http1 requests allowed
Http2MaxRequests int
Maximum number of http2 requests allowed
Http1MaxPendingRequests int
Maximum number of pending http1 requests allowed
Http2MaxRequests int
Maximum number of http2 requests allowed
http1MaxPendingRequests Integer
Maximum number of pending http1 requests allowed
http2MaxRequests Integer
Maximum number of http2 requests allowed
http1MaxPendingRequests number
Maximum number of pending http1 requests allowed
http2MaxRequests number
Maximum number of http2 requests allowed
http1_max_pending_requests int
Maximum number of pending http1 requests allowed
http2_max_requests int
Maximum number of http2 requests allowed
http1MaxPendingRequests Number
Maximum number of pending http1 requests allowed
http2MaxRequests Number
Maximum number of http2 requests allowed

HttpRetryPolicy
, HttpRetryPolicyArgs

Errors List<string>
Errors that can trigger a retry
Headers List<Pulumi.AzureNative.App.Inputs.HeaderMatch>
Headers that must be present for a request to be retried
HttpStatusCodes List<int>
Additional http status codes that can trigger a retry
InitialDelayInMilliseconds double
Initial delay, in milliseconds, before retrying a request
MaxIntervalInMilliseconds double
Maximum interval, in milliseconds, between retries
MaxRetries int
Maximum number of times a request will retry
Errors []string
Errors that can trigger a retry
Headers []HeaderMatch
Headers that must be present for a request to be retried
HttpStatusCodes []int
Additional http status codes that can trigger a retry
InitialDelayInMilliseconds float64
Initial delay, in milliseconds, before retrying a request
MaxIntervalInMilliseconds float64
Maximum interval, in milliseconds, between retries
MaxRetries int
Maximum number of times a request will retry
errors List<String>
Errors that can trigger a retry
headers List<HeaderMatch>
Headers that must be present for a request to be retried
httpStatusCodes List<Integer>
Additional http status codes that can trigger a retry
initialDelayInMilliseconds Double
Initial delay, in milliseconds, before retrying a request
maxIntervalInMilliseconds Double
Maximum interval, in milliseconds, between retries
maxRetries Integer
Maximum number of times a request will retry
errors string[]
Errors that can trigger a retry
headers HeaderMatch[]
Headers that must be present for a request to be retried
httpStatusCodes number[]
Additional http status codes that can trigger a retry
initialDelayInMilliseconds number
Initial delay, in milliseconds, before retrying a request
maxIntervalInMilliseconds number
Maximum interval, in milliseconds, between retries
maxRetries number
Maximum number of times a request will retry
errors Sequence[str]
Errors that can trigger a retry
headers Sequence[HeaderMatch]
Headers that must be present for a request to be retried
http_status_codes Sequence[int]
Additional http status codes that can trigger a retry
initial_delay_in_milliseconds float
Initial delay, in milliseconds, before retrying a request
max_interval_in_milliseconds float
Maximum interval, in milliseconds, between retries
max_retries int
Maximum number of times a request will retry
errors List<String>
Errors that can trigger a retry
headers List<Property Map>
Headers that must be present for a request to be retried
httpStatusCodes List<Number>
Additional http status codes that can trigger a retry
initialDelayInMilliseconds Number
Initial delay, in milliseconds, before retrying a request
maxIntervalInMilliseconds Number
Maximum interval, in milliseconds, between retries
maxRetries Number
Maximum number of times a request will retry

HttpRetryPolicyResponse
, HttpRetryPolicyResponseArgs

Errors List<string>
Errors that can trigger a retry
Headers List<Pulumi.AzureNative.App.Inputs.HeaderMatchResponse>
Headers that must be present for a request to be retried
HttpStatusCodes List<int>
Additional http status codes that can trigger a retry
InitialDelayInMilliseconds double
Initial delay, in milliseconds, before retrying a request
MaxIntervalInMilliseconds double
Maximum interval, in milliseconds, between retries
MaxRetries int
Maximum number of times a request will retry
Errors []string
Errors that can trigger a retry
Headers []HeaderMatchResponse
Headers that must be present for a request to be retried
HttpStatusCodes []int
Additional http status codes that can trigger a retry
InitialDelayInMilliseconds float64
Initial delay, in milliseconds, before retrying a request
MaxIntervalInMilliseconds float64
Maximum interval, in milliseconds, between retries
MaxRetries int
Maximum number of times a request will retry
errors List<String>
Errors that can trigger a retry
headers List<HeaderMatchResponse>
Headers that must be present for a request to be retried
httpStatusCodes List<Integer>
Additional http status codes that can trigger a retry
initialDelayInMilliseconds Double
Initial delay, in milliseconds, before retrying a request
maxIntervalInMilliseconds Double
Maximum interval, in milliseconds, between retries
maxRetries Integer
Maximum number of times a request will retry
errors string[]
Errors that can trigger a retry
headers HeaderMatchResponse[]
Headers that must be present for a request to be retried
httpStatusCodes number[]
Additional http status codes that can trigger a retry
initialDelayInMilliseconds number
Initial delay, in milliseconds, before retrying a request
maxIntervalInMilliseconds number
Maximum interval, in milliseconds, between retries
maxRetries number
Maximum number of times a request will retry
errors Sequence[str]
Errors that can trigger a retry
headers Sequence[HeaderMatchResponse]
Headers that must be present for a request to be retried
http_status_codes Sequence[int]
Additional http status codes that can trigger a retry
initial_delay_in_milliseconds float
Initial delay, in milliseconds, before retrying a request
max_interval_in_milliseconds float
Maximum interval, in milliseconds, between retries
max_retries int
Maximum number of times a request will retry
errors List<String>
Errors that can trigger a retry
headers List<Property Map>
Headers that must be present for a request to be retried
httpStatusCodes List<Number>
Additional http status codes that can trigger a retry
initialDelayInMilliseconds Number
Initial delay, in milliseconds, before retrying a request
maxIntervalInMilliseconds Number
Maximum interval, in milliseconds, between retries
maxRetries Number
Maximum number of times a request will retry

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

TcpConnectionPool
, TcpConnectionPoolArgs

MaxConnections int
Maximum number of tcp connections allowed
MaxConnections int
Maximum number of tcp connections allowed
maxConnections Integer
Maximum number of tcp connections allowed
maxConnections number
Maximum number of tcp connections allowed
max_connections int
Maximum number of tcp connections allowed
maxConnections Number
Maximum number of tcp connections allowed

TcpConnectionPoolResponse
, TcpConnectionPoolResponseArgs

MaxConnections int
Maximum number of tcp connections allowed
MaxConnections int
Maximum number of tcp connections allowed
maxConnections Integer
Maximum number of tcp connections allowed
maxConnections number
Maximum number of tcp connections allowed
max_connections int
Maximum number of tcp connections allowed
maxConnections Number
Maximum number of tcp connections allowed

TcpRetryPolicy
, TcpRetryPolicyArgs

MaxConnectAttempts int
Maximum number of attempts to connect to the tcp service
MaxConnectAttempts int
Maximum number of attempts to connect to the tcp service
maxConnectAttempts Integer
Maximum number of attempts to connect to the tcp service
maxConnectAttempts number
Maximum number of attempts to connect to the tcp service
max_connect_attempts int
Maximum number of attempts to connect to the tcp service
maxConnectAttempts Number
Maximum number of attempts to connect to the tcp service

TcpRetryPolicyResponse
, TcpRetryPolicyResponseArgs

MaxConnectAttempts int
Maximum number of attempts to connect to the tcp service
MaxConnectAttempts int
Maximum number of attempts to connect to the tcp service
maxConnectAttempts Integer
Maximum number of attempts to connect to the tcp service
maxConnectAttempts number
Maximum number of attempts to connect to the tcp service
max_connect_attempts int
Maximum number of attempts to connect to the tcp service
maxConnectAttempts Number
Maximum number of attempts to connect to the tcp service

TimeoutPolicy
, TimeoutPolicyArgs

ConnectionTimeoutInSeconds int
Timeout, in seconds, for a request to initiate a connection
ResponseTimeoutInSeconds int
Timeout, in seconds, for a request to respond
ConnectionTimeoutInSeconds int
Timeout, in seconds, for a request to initiate a connection
ResponseTimeoutInSeconds int
Timeout, in seconds, for a request to respond
connectionTimeoutInSeconds Integer
Timeout, in seconds, for a request to initiate a connection
responseTimeoutInSeconds Integer
Timeout, in seconds, for a request to respond
connectionTimeoutInSeconds number
Timeout, in seconds, for a request to initiate a connection
responseTimeoutInSeconds number
Timeout, in seconds, for a request to respond
connection_timeout_in_seconds int
Timeout, in seconds, for a request to initiate a connection
response_timeout_in_seconds int
Timeout, in seconds, for a request to respond
connectionTimeoutInSeconds Number
Timeout, in seconds, for a request to initiate a connection
responseTimeoutInSeconds Number
Timeout, in seconds, for a request to respond

TimeoutPolicyResponse
, TimeoutPolicyResponseArgs

ConnectionTimeoutInSeconds int
Timeout, in seconds, for a request to initiate a connection
ResponseTimeoutInSeconds int
Timeout, in seconds, for a request to respond
ConnectionTimeoutInSeconds int
Timeout, in seconds, for a request to initiate a connection
ResponseTimeoutInSeconds int
Timeout, in seconds, for a request to respond
connectionTimeoutInSeconds Integer
Timeout, in seconds, for a request to initiate a connection
responseTimeoutInSeconds Integer
Timeout, in seconds, for a request to respond
connectionTimeoutInSeconds number
Timeout, in seconds, for a request to initiate a connection
responseTimeoutInSeconds number
Timeout, in seconds, for a request to respond
connection_timeout_in_seconds int
Timeout, in seconds, for a request to initiate a connection
response_timeout_in_seconds int
Timeout, in seconds, for a request to respond
connectionTimeoutInSeconds Number
Timeout, in seconds, for a request to initiate a connection
responseTimeoutInSeconds Number
Timeout, in seconds, for a request to respond

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:app:AppResiliency resiliency-policy-1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi