azure-native.app.AppResiliency
Explore with Pulumi AI
Configuration to setup App Resiliency
Uses Azure REST API version 2023-08-01-preview.
Other available API versions: 2023-11-02-preview, 2024-02-02-preview, 2024-08-02-preview, 2024-10-02-preview.
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,
        },
    });
});
package main
import (
	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
	"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
	})
}
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)
                .maxIntervalInMilliseconds(10000)
                .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());
    }
}
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,
    },
});
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,
    })
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
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 string
- The unique name of the resource.
- args AppResiliencyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args AppResiliencyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppResiliencyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
    },
});
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),
	},
})
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());
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,
    })
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,
    },
});
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
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 string
- Name of the Container App.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- CircuitBreaker Pulumi.Policy Azure Native. App. Inputs. Circuit Breaker Policy 
- Policy that defines circuit breaker conditions
- HttpConnection Pulumi.Pool Azure Native. App. Inputs. Http Connection Pool 
- Defines parameters for http connection pooling
- HttpRetry Pulumi.Policy Azure Native. App. Inputs. Http Retry Policy 
- Policy that defines http request retry conditions
- Name string
- Name of the resiliency policy.
- TcpConnection Pulumi.Pool Azure Native. App. Inputs. Tcp Connection Pool 
- Defines parameters for tcp connection pooling
- TcpRetry Pulumi.Policy Azure Native. App. Inputs. Tcp Retry Policy 
- Policy that defines tcp request retry conditions
- TimeoutPolicy Pulumi.Azure Native. App. Inputs. Timeout Policy 
- Policy to set request timeouts
- AppName string
- Name of the Container App.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- CircuitBreaker CircuitPolicy Breaker Policy Args 
- Policy that defines circuit breaker conditions
- HttpConnection HttpPool Connection Pool Args 
- Defines parameters for http connection pooling
- HttpRetry HttpPolicy Retry Policy Args 
- Policy that defines http request retry conditions
- Name string
- Name of the resiliency policy.
- TcpConnection TcpPool Connection Pool Args 
- Defines parameters for tcp connection pooling
- TcpRetry TcpPolicy Retry Policy Args 
- Policy that defines tcp request retry conditions
- TimeoutPolicy TimeoutPolicy Args 
- Policy to set request timeouts
- appName String
- Name of the Container App.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- circuitBreaker CircuitPolicy Breaker Policy 
- Policy that defines circuit breaker conditions
- httpConnection HttpPool Connection Pool 
- Defines parameters for http connection pooling
- httpRetry HttpPolicy Retry Policy 
- Policy that defines http request retry conditions
- name String
- Name of the resiliency policy.
- tcpConnection TcpPool Connection Pool 
- Defines parameters for tcp connection pooling
- tcpRetry TcpPolicy Retry Policy 
- Policy that defines tcp request retry conditions
- timeoutPolicy TimeoutPolicy 
- Policy to set request timeouts
- appName string
- Name of the Container App.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- circuitBreaker CircuitPolicy Breaker Policy 
- Policy that defines circuit breaker conditions
- httpConnection HttpPool Connection Pool 
- Defines parameters for http connection pooling
- httpRetry HttpPolicy Retry Policy 
- Policy that defines http request retry conditions
- name string
- Name of the resiliency policy.
- tcpConnection TcpPool Connection Pool 
- Defines parameters for tcp connection pooling
- tcpRetry TcpPolicy Retry Policy 
- Policy that defines tcp request retry conditions
- timeoutPolicy TimeoutPolicy 
- Policy to set request timeouts
- app_name str
- Name of the Container App.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- circuit_breaker_ Circuitpolicy Breaker Policy Args 
- Policy that defines circuit breaker conditions
- http_connection_ Httppool Connection Pool Args 
- Defines parameters for http connection pooling
- http_retry_ Httppolicy Retry Policy Args 
- Policy that defines http request retry conditions
- name str
- Name of the resiliency policy.
- tcp_connection_ Tcppool Connection Pool Args 
- Defines parameters for tcp connection pooling
- tcp_retry_ Tcppolicy Retry Policy Args 
- Policy that defines tcp request retry conditions
- timeout_policy TimeoutPolicy Args 
- Policy to set request timeouts
- appName String
- Name of the Container App.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- circuitBreaker Property MapPolicy 
- Policy that defines circuit breaker conditions
- httpConnection Property MapPool 
- Defines parameters for http connection pooling
- httpRetry Property MapPolicy 
- Policy that defines http request retry conditions
- name String
- Name of the resiliency policy.
- tcpConnection Property MapPool 
- Defines parameters for tcp connection pooling
- tcpRetry Property MapPolicy 
- 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:
- Id string
- The provider-assigned unique ID for this managed resource.
- SystemData Pulumi.Azure Native. App. Outputs. System Data Response 
- 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"
- Id string
- The provider-assigned unique ID for this managed resource.
- SystemData SystemData Response 
- 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"
- id String
- The provider-assigned unique ID for this managed resource.
- systemData SystemData Response 
- 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"
- id string
- The provider-assigned unique ID for this managed resource.
- systemData SystemData Response 
- 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"
- id str
- The provider-assigned unique ID for this managed resource.
- system_data SystemData Response 
- 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"
- 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
- IntervalIn intSeconds 
- 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.
- MaxEjection intPercent 
- 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
- IntervalIn intSeconds 
- 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.
- MaxEjection intPercent 
- 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
- intervalIn IntegerSeconds 
- 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.
- maxEjection IntegerPercent 
- 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
- intervalIn numberSeconds 
- 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.
- maxEjection numberPercent 
- 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_ intseconds 
- 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_ intpercent 
- 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
- intervalIn NumberSeconds 
- 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.
- maxEjection NumberPercent 
- 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
- IntervalIn intSeconds 
- 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.
- MaxEjection intPercent 
- 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
- IntervalIn intSeconds 
- 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.
- MaxEjection intPercent 
- 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
- intervalIn IntegerSeconds 
- 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.
- maxEjection IntegerPercent 
- 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
- intervalIn numberSeconds 
- 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.
- maxEjection numberPercent 
- 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_ intseconds 
- 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_ intpercent 
- 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
- intervalIn NumberSeconds 
- 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.
- maxEjection NumberPercent 
- 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      
- Http1MaxPending intRequests 
- Maximum number of pending http1 requests allowed
- Http2MaxRequests int
- Maximum number of http2 requests allowed
- Http1MaxPending intRequests 
- Maximum number of pending http1 requests allowed
- Http2MaxRequests int
- Maximum number of http2 requests allowed
- http1MaxPending IntegerRequests 
- Maximum number of pending http1 requests allowed
- http2MaxRequests Integer
- Maximum number of http2 requests allowed
- http1MaxPending numberRequests 
- Maximum number of pending http1 requests allowed
- http2MaxRequests number
- Maximum number of http2 requests allowed
- http1_max_ intpending_ requests 
- Maximum number of pending http1 requests allowed
- http2_max_ intrequests 
- Maximum number of http2 requests allowed
- http1MaxPending NumberRequests 
- Maximum number of pending http1 requests allowed
- http2MaxRequests Number
- Maximum number of http2 requests allowed
HttpConnectionPoolResponse, HttpConnectionPoolResponseArgs        
- Http1MaxPending intRequests 
- Maximum number of pending http1 requests allowed
- Http2MaxRequests int
- Maximum number of http2 requests allowed
- Http1MaxPending intRequests 
- Maximum number of pending http1 requests allowed
- Http2MaxRequests int
- Maximum number of http2 requests allowed
- http1MaxPending IntegerRequests 
- Maximum number of pending http1 requests allowed
- http2MaxRequests Integer
- Maximum number of http2 requests allowed
- http1MaxPending numberRequests 
- Maximum number of pending http1 requests allowed
- http2MaxRequests number
- Maximum number of http2 requests allowed
- http1_max_ intpending_ requests 
- Maximum number of pending http1 requests allowed
- http2_max_ intrequests 
- Maximum number of http2 requests allowed
- http1MaxPending NumberRequests 
- 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.Azure Native. App. Inputs. Header Match> 
- Headers that must be present for a request to be retried
- HttpStatus List<int>Codes 
- Additional http status codes that can trigger a retry
- InitialDelay doubleIn Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- MaxInterval doubleIn Milliseconds 
- 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
- HttpStatus []intCodes 
- Additional http status codes that can trigger a retry
- InitialDelay float64In Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- MaxInterval float64In Milliseconds 
- 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
- httpStatus List<Integer>Codes 
- Additional http status codes that can trigger a retry
- initialDelay DoubleIn Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- maxInterval DoubleIn Milliseconds 
- 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
- httpStatus number[]Codes 
- Additional http status codes that can trigger a retry
- initialDelay numberIn Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- maxInterval numberIn Milliseconds 
- 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_ Sequence[int]codes 
- Additional http status codes that can trigger a retry
- initial_delay_ floatin_ milliseconds 
- Initial delay, in milliseconds, before retrying a request
- max_interval_ floatin_ milliseconds 
- 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
- httpStatus List<Number>Codes 
- Additional http status codes that can trigger a retry
- initialDelay NumberIn Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- maxInterval NumberIn Milliseconds 
- 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.Azure Native. App. Inputs. Header Match Response> 
- Headers that must be present for a request to be retried
- HttpStatus List<int>Codes 
- Additional http status codes that can trigger a retry
- InitialDelay doubleIn Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- MaxInterval doubleIn Milliseconds 
- 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 Response 
- Headers that must be present for a request to be retried
- HttpStatus []intCodes 
- Additional http status codes that can trigger a retry
- InitialDelay float64In Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- MaxInterval float64In Milliseconds 
- 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 Response> 
- Headers that must be present for a request to be retried
- httpStatus List<Integer>Codes 
- Additional http status codes that can trigger a retry
- initialDelay DoubleIn Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- maxInterval DoubleIn Milliseconds 
- 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 Response[] 
- Headers that must be present for a request to be retried
- httpStatus number[]Codes 
- Additional http status codes that can trigger a retry
- initialDelay numberIn Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- maxInterval numberIn Milliseconds 
- 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 Response] 
- Headers that must be present for a request to be retried
- http_status_ Sequence[int]codes 
- Additional http status codes that can trigger a retry
- initial_delay_ floatin_ milliseconds 
- Initial delay, in milliseconds, before retrying a request
- max_interval_ floatin_ milliseconds 
- 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
- httpStatus List<Number>Codes 
- Additional http status codes that can trigger a retry
- initialDelay NumberIn Milliseconds 
- Initial delay, in milliseconds, before retrying a request
- maxInterval NumberIn Milliseconds 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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      
- MaxConnect intAttempts 
- Maximum number of attempts to connect to the tcp service
- MaxConnect intAttempts 
- Maximum number of attempts to connect to the tcp service
- maxConnect IntegerAttempts 
- Maximum number of attempts to connect to the tcp service
- maxConnect numberAttempts 
- Maximum number of attempts to connect to the tcp service
- max_connect_ intattempts 
- Maximum number of attempts to connect to the tcp service
- maxConnect NumberAttempts 
- Maximum number of attempts to connect to the tcp service
TcpRetryPolicyResponse, TcpRetryPolicyResponseArgs        
- MaxConnect intAttempts 
- Maximum number of attempts to connect to the tcp service
- MaxConnect intAttempts 
- Maximum number of attempts to connect to the tcp service
- maxConnect IntegerAttempts 
- Maximum number of attempts to connect to the tcp service
- maxConnect numberAttempts 
- Maximum number of attempts to connect to the tcp service
- max_connect_ intattempts 
- Maximum number of attempts to connect to the tcp service
- maxConnect NumberAttempts 
- Maximum number of attempts to connect to the tcp service
TimeoutPolicy, TimeoutPolicyArgs    
- ConnectionTimeout intIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- ResponseTimeout intIn Seconds 
- Timeout, in seconds, for a request to respond
- ConnectionTimeout intIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- ResponseTimeout intIn Seconds 
- Timeout, in seconds, for a request to respond
- connectionTimeout IntegerIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- responseTimeout IntegerIn Seconds 
- Timeout, in seconds, for a request to respond
- connectionTimeout numberIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- responseTimeout numberIn Seconds 
- Timeout, in seconds, for a request to respond
- connection_timeout_ intin_ seconds 
- Timeout, in seconds, for a request to initiate a connection
- response_timeout_ intin_ seconds 
- Timeout, in seconds, for a request to respond
- connectionTimeout NumberIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- responseTimeout NumberIn Seconds 
- Timeout, in seconds, for a request to respond
TimeoutPolicyResponse, TimeoutPolicyResponseArgs      
- ConnectionTimeout intIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- ResponseTimeout intIn Seconds 
- Timeout, in seconds, for a request to respond
- ConnectionTimeout intIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- ResponseTimeout intIn Seconds 
- Timeout, in seconds, for a request to respond
- connectionTimeout IntegerIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- responseTimeout IntegerIn Seconds 
- Timeout, in seconds, for a request to respond
- connectionTimeout numberIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- responseTimeout numberIn Seconds 
- Timeout, in seconds, for a request to respond
- connection_timeout_ intin_ seconds 
- Timeout, in seconds, for a request to initiate a connection
- response_timeout_ intin_ seconds 
- Timeout, in seconds, for a request to respond
- connectionTimeout NumberIn Seconds 
- Timeout, in seconds, for a request to initiate a connection
- responseTimeout NumberIn Seconds 
- 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} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0