1. Packages
  2. Azure Classic
  3. API Docs
  4. containerapp
  5. App

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.containerapp.App

Explore with Pulumi AI

Manages a Container App.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
    name: "acctest-01",
    location: example.location,
    resourceGroupName: example.name,
    sku: "PerGB2018",
    retentionInDays: 30,
});
const exampleEnvironment = new azure.containerapp.Environment("example", {
    name: "Example-Environment",
    location: example.location,
    resourceGroupName: example.name,
    logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id,
});
const exampleApp = new azure.containerapp.App("example", {
    name: "example-app",
    containerAppEnvironmentId: exampleEnvironment.id,
    resourceGroupName: example.name,
    revisionMode: "Single",
    template: {
        containers: [{
            name: "examplecontainerapp",
            image: "mcr.microsoft.com/k8se/quickstart:latest",
            cpu: 0.25,
            memory: "0.5Gi",
        }],
    },
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
    name="acctest-01",
    location=example.location,
    resource_group_name=example.name,
    sku="PerGB2018",
    retention_in_days=30)
example_environment = azure.containerapp.Environment("example",
    name="Example-Environment",
    location=example.location,
    resource_group_name=example.name,
    log_analytics_workspace_id=example_analytics_workspace.id)
example_app = azure.containerapp.App("example",
    name="example-app",
    container_app_environment_id=example_environment.id,
    resource_group_name=example.name,
    revision_mode="Single",
    template={
        "containers": [{
            "name": "examplecontainerapp",
            "image": "mcr.microsoft.com/k8se/quickstart:latest",
            "cpu": 0.25,
            "memory": "0.5Gi",
        }],
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
			Name:              pulumi.String("acctest-01"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("PerGB2018"),
			RetentionInDays:   pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{
			Name:                    pulumi.String("Example-Environment"),
			Location:                example.Location,
			ResourceGroupName:       example.Name,
			LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
		})
		if err != nil {
			return err
		}
		_, err = containerapp.NewApp(ctx, "example", &containerapp.AppArgs{
			Name:                      pulumi.String("example-app"),
			ContainerAppEnvironmentId: exampleEnvironment.ID(),
			ResourceGroupName:         example.Name,
			RevisionMode:              pulumi.String("Single"),
			Template: &containerapp.AppTemplateArgs{
				Containers: containerapp.AppTemplateContainerArray{
					&containerapp.AppTemplateContainerArgs{
						Name:   pulumi.String("examplecontainerapp"),
						Image:  pulumi.String("mcr.microsoft.com/k8se/quickstart:latest"),
						Cpu:    pulumi.Float64(0.25),
						Memory: pulumi.String("0.5Gi"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
    {
        Name = "acctest-01",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Sku = "PerGB2018",
        RetentionInDays = 30,
    });

    var exampleEnvironment = new Azure.ContainerApp.Environment("example", new()
    {
        Name = "Example-Environment",
        Location = example.Location,
        ResourceGroupName = example.Name,
        LogAnalyticsWorkspaceId = exampleAnalyticsWorkspace.Id,
    });

    var exampleApp = new Azure.ContainerApp.App("example", new()
    {
        Name = "example-app",
        ContainerAppEnvironmentId = exampleEnvironment.Id,
        ResourceGroupName = example.Name,
        RevisionMode = "Single",
        Template = new Azure.ContainerApp.Inputs.AppTemplateArgs
        {
            Containers = new[]
            {
                new Azure.ContainerApp.Inputs.AppTemplateContainerArgs
                {
                    Name = "examplecontainerapp",
                    Image = "mcr.microsoft.com/k8se/quickstart:latest",
                    Cpu = 0.25,
                    Memory = "0.5Gi",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.containerapp.Environment;
import com.pulumi.azure.containerapp.EnvironmentArgs;
import com.pulumi.azure.containerapp.App;
import com.pulumi.azure.containerapp.AppArgs;
import com.pulumi.azure.containerapp.inputs.AppTemplateArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());

        var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
            .name("acctest-01")
            .location(example.location())
            .resourceGroupName(example.name())
            .sku("PerGB2018")
            .retentionInDays(30)
            .build());

        var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
            .name("Example-Environment")
            .location(example.location())
            .resourceGroupName(example.name())
            .logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
            .build());

        var exampleApp = new App("exampleApp", AppArgs.builder()
            .name("example-app")
            .containerAppEnvironmentId(exampleEnvironment.id())
            .resourceGroupName(example.name())
            .revisionMode("Single")
            .template(AppTemplateArgs.builder()
                .containers(AppTemplateContainerArgs.builder()
                    .name("examplecontainerapp")
                    .image("mcr.microsoft.com/k8se/quickstart:latest")
                    .cpu(0.25)
                    .memory("0.5Gi")
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleAnalyticsWorkspace:
    type: azure:operationalinsights:AnalyticsWorkspace
    name: example
    properties:
      name: acctest-01
      location: ${example.location}
      resourceGroupName: ${example.name}
      sku: PerGB2018
      retentionInDays: 30
  exampleEnvironment:
    type: azure:containerapp:Environment
    name: example
    properties:
      name: Example-Environment
      location: ${example.location}
      resourceGroupName: ${example.name}
      logAnalyticsWorkspaceId: ${exampleAnalyticsWorkspace.id}
  exampleApp:
    type: azure:containerapp:App
    name: example
    properties:
      name: example-app
      containerAppEnvironmentId: ${exampleEnvironment.id}
      resourceGroupName: ${example.name}
      revisionMode: Single
      template:
        containers:
          - name: examplecontainerapp
            image: mcr.microsoft.com/k8se/quickstart:latest
            cpu: 0.25
            memory: 0.5Gi
Copy

Create App Resource

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

Constructor syntax

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

@overload
def App(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        container_app_environment_id: Optional[str] = None,
        template: Optional[AppTemplateArgs] = None,
        revision_mode: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        registries: Optional[Sequence[AppRegistryArgs]] = None,
        name: Optional[str] = None,
        max_inactive_revisions: Optional[int] = None,
        ingress: Optional[AppIngressArgs] = None,
        identity: Optional[AppIdentityArgs] = None,
        secrets: Optional[Sequence[AppSecretArgs]] = None,
        tags: Optional[Mapping[str, str]] = None,
        dapr: Optional[AppDaprArgs] = None,
        workload_profile_name: Optional[str] = None)
func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)
public App(string name, AppArgs args, CustomResourceOptions? opts = null)
public App(String name, AppArgs args)
public App(String name, AppArgs args, CustomResourceOptions options)
type: azure:containerapp:App
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. AppArgs
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. AppArgs
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. AppArgs
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. AppArgs
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. AppArgs
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 appResource = new Azure.ContainerApp.App("appResource", new()
{
    ContainerAppEnvironmentId = "string",
    Template = new Azure.ContainerApp.Inputs.AppTemplateArgs
    {
        Containers = new[]
        {
            new Azure.ContainerApp.Inputs.AppTemplateContainerArgs
            {
                Cpu = 0,
                Image = "string",
                Memory = "string",
                Name = "string",
                Args = new[]
                {
                    "string",
                },
                Commands = new[]
                {
                    "string",
                },
                Envs = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateContainerEnvArgs
                    {
                        Name = "string",
                        SecretName = "string",
                        Value = "string",
                    },
                },
                EphemeralStorage = "string",
                LivenessProbes = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateContainerLivenessProbeArgs
                    {
                        Port = 0,
                        Transport = "string",
                        FailureCountThreshold = 0,
                        Headers = new[]
                        {
                            new Azure.ContainerApp.Inputs.AppTemplateContainerLivenessProbeHeaderArgs
                            {
                                Name = "string",
                                Value = "string",
                            },
                        },
                        Host = "string",
                        InitialDelay = 0,
                        IntervalSeconds = 0,
                        Path = "string",
                        TerminationGracePeriodSeconds = 0,
                        Timeout = 0,
                    },
                },
                ReadinessProbes = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateContainerReadinessProbeArgs
                    {
                        Port = 0,
                        Transport = "string",
                        FailureCountThreshold = 0,
                        Headers = new[]
                        {
                            new Azure.ContainerApp.Inputs.AppTemplateContainerReadinessProbeHeaderArgs
                            {
                                Name = "string",
                                Value = "string",
                            },
                        },
                        Host = "string",
                        InitialDelay = 0,
                        IntervalSeconds = 0,
                        Path = "string",
                        SuccessCountThreshold = 0,
                        Timeout = 0,
                    },
                },
                StartupProbes = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateContainerStartupProbeArgs
                    {
                        Port = 0,
                        Transport = "string",
                        FailureCountThreshold = 0,
                        Headers = new[]
                        {
                            new Azure.ContainerApp.Inputs.AppTemplateContainerStartupProbeHeaderArgs
                            {
                                Name = "string",
                                Value = "string",
                            },
                        },
                        Host = "string",
                        InitialDelay = 0,
                        IntervalSeconds = 0,
                        Path = "string",
                        TerminationGracePeriodSeconds = 0,
                        Timeout = 0,
                    },
                },
                VolumeMounts = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateContainerVolumeMountArgs
                    {
                        Name = "string",
                        Path = "string",
                        SubPath = "string",
                    },
                },
            },
        },
        AzureQueueScaleRules = new[]
        {
            new Azure.ContainerApp.Inputs.AppTemplateAzureQueueScaleRuleArgs
            {
                Authentications = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateAzureQueueScaleRuleAuthenticationArgs
                    {
                        SecretName = "string",
                        TriggerParameter = "string",
                    },
                },
                Name = "string",
                QueueLength = 0,
                QueueName = "string",
            },
        },
        CustomScaleRules = new[]
        {
            new Azure.ContainerApp.Inputs.AppTemplateCustomScaleRuleArgs
            {
                CustomRuleType = "string",
                Metadata = 
                {
                    { "string", "string" },
                },
                Name = "string",
                Authentications = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateCustomScaleRuleAuthenticationArgs
                    {
                        SecretName = "string",
                        TriggerParameter = "string",
                    },
                },
            },
        },
        HttpScaleRules = new[]
        {
            new Azure.ContainerApp.Inputs.AppTemplateHttpScaleRuleArgs
            {
                ConcurrentRequests = "string",
                Name = "string",
                Authentications = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateHttpScaleRuleAuthenticationArgs
                    {
                        SecretName = "string",
                        TriggerParameter = "string",
                    },
                },
            },
        },
        InitContainers = new[]
        {
            new Azure.ContainerApp.Inputs.AppTemplateInitContainerArgs
            {
                Image = "string",
                Name = "string",
                Args = new[]
                {
                    "string",
                },
                Commands = new[]
                {
                    "string",
                },
                Cpu = 0,
                Envs = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateInitContainerEnvArgs
                    {
                        Name = "string",
                        SecretName = "string",
                        Value = "string",
                    },
                },
                EphemeralStorage = "string",
                Memory = "string",
                VolumeMounts = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateInitContainerVolumeMountArgs
                    {
                        Name = "string",
                        Path = "string",
                        SubPath = "string",
                    },
                },
            },
        },
        MaxReplicas = 0,
        MinReplicas = 0,
        RevisionSuffix = "string",
        TcpScaleRules = new[]
        {
            new Azure.ContainerApp.Inputs.AppTemplateTcpScaleRuleArgs
            {
                ConcurrentRequests = "string",
                Name = "string",
                Authentications = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateTcpScaleRuleAuthenticationArgs
                    {
                        SecretName = "string",
                        TriggerParameter = "string",
                    },
                },
            },
        },
        TerminationGracePeriodSeconds = 0,
        Volumes = new[]
        {
            new Azure.ContainerApp.Inputs.AppTemplateVolumeArgs
            {
                Name = "string",
                MountOptions = "string",
                StorageName = "string",
                StorageType = "string",
            },
        },
    },
    RevisionMode = "string",
    ResourceGroupName = "string",
    Registries = new[]
    {
        new Azure.ContainerApp.Inputs.AppRegistryArgs
        {
            Server = "string",
            Identity = "string",
            PasswordSecretName = "string",
            Username = "string",
        },
    },
    Name = "string",
    MaxInactiveRevisions = 0,
    Ingress = new Azure.ContainerApp.Inputs.AppIngressArgs
    {
        TargetPort = 0,
        TrafficWeights = new[]
        {
            new Azure.ContainerApp.Inputs.AppIngressTrafficWeightArgs
            {
                Percentage = 0,
                Label = "string",
                LatestRevision = false,
                RevisionSuffix = "string",
            },
        },
        AllowInsecureConnections = false,
        ClientCertificateMode = "string",
        CustomDomains = new[]
        {
            new Azure.ContainerApp.Inputs.AppIngressCustomDomainArgs
            {
                CertificateBindingType = "string",
                CertificateId = "string",
                Name = "string",
            },
        },
        ExposedPort = 0,
        ExternalEnabled = false,
        Fqdn = "string",
        IpSecurityRestrictions = new[]
        {
            new Azure.ContainerApp.Inputs.AppIngressIpSecurityRestrictionArgs
            {
                Action = "string",
                IpAddressRange = "string",
                Name = "string",
                Description = "string",
            },
        },
        Transport = "string",
    },
    Identity = new Azure.ContainerApp.Inputs.AppIdentityArgs
    {
        Type = "string",
        IdentityIds = new[]
        {
            "string",
        },
        PrincipalId = "string",
        TenantId = "string",
    },
    Secrets = new[]
    {
        new Azure.ContainerApp.Inputs.AppSecretArgs
        {
            Name = "string",
            Identity = "string",
            KeyVaultSecretId = "string",
            Value = "string",
        },
    },
    Tags = 
    {
        { "string", "string" },
    },
    Dapr = new Azure.ContainerApp.Inputs.AppDaprArgs
    {
        AppId = "string",
        AppPort = 0,
        AppProtocol = "string",
    },
    WorkloadProfileName = "string",
});
Copy
example, err := containerapp.NewApp(ctx, "appResource", &containerapp.AppArgs{
	ContainerAppEnvironmentId: pulumi.String("string"),
	Template: &containerapp.AppTemplateArgs{
		Containers: containerapp.AppTemplateContainerArray{
			&containerapp.AppTemplateContainerArgs{
				Cpu:    pulumi.Float64(0),
				Image:  pulumi.String("string"),
				Memory: pulumi.String("string"),
				Name:   pulumi.String("string"),
				Args: pulumi.StringArray{
					pulumi.String("string"),
				},
				Commands: pulumi.StringArray{
					pulumi.String("string"),
				},
				Envs: containerapp.AppTemplateContainerEnvArray{
					&containerapp.AppTemplateContainerEnvArgs{
						Name:       pulumi.String("string"),
						SecretName: pulumi.String("string"),
						Value:      pulumi.String("string"),
					},
				},
				EphemeralStorage: pulumi.String("string"),
				LivenessProbes: containerapp.AppTemplateContainerLivenessProbeArray{
					&containerapp.AppTemplateContainerLivenessProbeArgs{
						Port:                  pulumi.Int(0),
						Transport:             pulumi.String("string"),
						FailureCountThreshold: pulumi.Int(0),
						Headers: containerapp.AppTemplateContainerLivenessProbeHeaderArray{
							&containerapp.AppTemplateContainerLivenessProbeHeaderArgs{
								Name:  pulumi.String("string"),
								Value: pulumi.String("string"),
							},
						},
						Host:                          pulumi.String("string"),
						InitialDelay:                  pulumi.Int(0),
						IntervalSeconds:               pulumi.Int(0),
						Path:                          pulumi.String("string"),
						TerminationGracePeriodSeconds: pulumi.Int(0),
						Timeout:                       pulumi.Int(0),
					},
				},
				ReadinessProbes: containerapp.AppTemplateContainerReadinessProbeArray{
					&containerapp.AppTemplateContainerReadinessProbeArgs{
						Port:                  pulumi.Int(0),
						Transport:             pulumi.String("string"),
						FailureCountThreshold: pulumi.Int(0),
						Headers: containerapp.AppTemplateContainerReadinessProbeHeaderArray{
							&containerapp.AppTemplateContainerReadinessProbeHeaderArgs{
								Name:  pulumi.String("string"),
								Value: pulumi.String("string"),
							},
						},
						Host:                  pulumi.String("string"),
						InitialDelay:          pulumi.Int(0),
						IntervalSeconds:       pulumi.Int(0),
						Path:                  pulumi.String("string"),
						SuccessCountThreshold: pulumi.Int(0),
						Timeout:               pulumi.Int(0),
					},
				},
				StartupProbes: containerapp.AppTemplateContainerStartupProbeArray{
					&containerapp.AppTemplateContainerStartupProbeArgs{
						Port:                  pulumi.Int(0),
						Transport:             pulumi.String("string"),
						FailureCountThreshold: pulumi.Int(0),
						Headers: containerapp.AppTemplateContainerStartupProbeHeaderArray{
							&containerapp.AppTemplateContainerStartupProbeHeaderArgs{
								Name:  pulumi.String("string"),
								Value: pulumi.String("string"),
							},
						},
						Host:                          pulumi.String("string"),
						InitialDelay:                  pulumi.Int(0),
						IntervalSeconds:               pulumi.Int(0),
						Path:                          pulumi.String("string"),
						TerminationGracePeriodSeconds: pulumi.Int(0),
						Timeout:                       pulumi.Int(0),
					},
				},
				VolumeMounts: containerapp.AppTemplateContainerVolumeMountArray{
					&containerapp.AppTemplateContainerVolumeMountArgs{
						Name:    pulumi.String("string"),
						Path:    pulumi.String("string"),
						SubPath: pulumi.String("string"),
					},
				},
			},
		},
		AzureQueueScaleRules: containerapp.AppTemplateAzureQueueScaleRuleArray{
			&containerapp.AppTemplateAzureQueueScaleRuleArgs{
				Authentications: containerapp.AppTemplateAzureQueueScaleRuleAuthenticationArray{
					&containerapp.AppTemplateAzureQueueScaleRuleAuthenticationArgs{
						SecretName:       pulumi.String("string"),
						TriggerParameter: pulumi.String("string"),
					},
				},
				Name:        pulumi.String("string"),
				QueueLength: pulumi.Int(0),
				QueueName:   pulumi.String("string"),
			},
		},
		CustomScaleRules: containerapp.AppTemplateCustomScaleRuleArray{
			&containerapp.AppTemplateCustomScaleRuleArgs{
				CustomRuleType: pulumi.String("string"),
				Metadata: pulumi.StringMap{
					"string": pulumi.String("string"),
				},
				Name: pulumi.String("string"),
				Authentications: containerapp.AppTemplateCustomScaleRuleAuthenticationArray{
					&containerapp.AppTemplateCustomScaleRuleAuthenticationArgs{
						SecretName:       pulumi.String("string"),
						TriggerParameter: pulumi.String("string"),
					},
				},
			},
		},
		HttpScaleRules: containerapp.AppTemplateHttpScaleRuleArray{
			&containerapp.AppTemplateHttpScaleRuleArgs{
				ConcurrentRequests: pulumi.String("string"),
				Name:               pulumi.String("string"),
				Authentications: containerapp.AppTemplateHttpScaleRuleAuthenticationArray{
					&containerapp.AppTemplateHttpScaleRuleAuthenticationArgs{
						SecretName:       pulumi.String("string"),
						TriggerParameter: pulumi.String("string"),
					},
				},
			},
		},
		InitContainers: containerapp.AppTemplateInitContainerArray{
			&containerapp.AppTemplateInitContainerArgs{
				Image: pulumi.String("string"),
				Name:  pulumi.String("string"),
				Args: pulumi.StringArray{
					pulumi.String("string"),
				},
				Commands: pulumi.StringArray{
					pulumi.String("string"),
				},
				Cpu: pulumi.Float64(0),
				Envs: containerapp.AppTemplateInitContainerEnvArray{
					&containerapp.AppTemplateInitContainerEnvArgs{
						Name:       pulumi.String("string"),
						SecretName: pulumi.String("string"),
						Value:      pulumi.String("string"),
					},
				},
				EphemeralStorage: pulumi.String("string"),
				Memory:           pulumi.String("string"),
				VolumeMounts: containerapp.AppTemplateInitContainerVolumeMountArray{
					&containerapp.AppTemplateInitContainerVolumeMountArgs{
						Name:    pulumi.String("string"),
						Path:    pulumi.String("string"),
						SubPath: pulumi.String("string"),
					},
				},
			},
		},
		MaxReplicas:    pulumi.Int(0),
		MinReplicas:    pulumi.Int(0),
		RevisionSuffix: pulumi.String("string"),
		TcpScaleRules: containerapp.AppTemplateTcpScaleRuleArray{
			&containerapp.AppTemplateTcpScaleRuleArgs{
				ConcurrentRequests: pulumi.String("string"),
				Name:               pulumi.String("string"),
				Authentications: containerapp.AppTemplateTcpScaleRuleAuthenticationArray{
					&containerapp.AppTemplateTcpScaleRuleAuthenticationArgs{
						SecretName:       pulumi.String("string"),
						TriggerParameter: pulumi.String("string"),
					},
				},
			},
		},
		TerminationGracePeriodSeconds: pulumi.Int(0),
		Volumes: containerapp.AppTemplateVolumeArray{
			&containerapp.AppTemplateVolumeArgs{
				Name:         pulumi.String("string"),
				MountOptions: pulumi.String("string"),
				StorageName:  pulumi.String("string"),
				StorageType:  pulumi.String("string"),
			},
		},
	},
	RevisionMode:      pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	Registries: containerapp.AppRegistryArray{
		&containerapp.AppRegistryArgs{
			Server:             pulumi.String("string"),
			Identity:           pulumi.String("string"),
			PasswordSecretName: pulumi.String("string"),
			Username:           pulumi.String("string"),
		},
	},
	Name:                 pulumi.String("string"),
	MaxInactiveRevisions: pulumi.Int(0),
	Ingress: &containerapp.AppIngressArgs{
		TargetPort: pulumi.Int(0),
		TrafficWeights: containerapp.AppIngressTrafficWeightArray{
			&containerapp.AppIngressTrafficWeightArgs{
				Percentage:     pulumi.Int(0),
				Label:          pulumi.String("string"),
				LatestRevision: pulumi.Bool(false),
				RevisionSuffix: pulumi.String("string"),
			},
		},
		AllowInsecureConnections: pulumi.Bool(false),
		ClientCertificateMode:    pulumi.String("string"),
		CustomDomains: containerapp.AppIngressCustomDomainArray{
			&containerapp.AppIngressCustomDomainArgs{
				CertificateBindingType: pulumi.String("string"),
				CertificateId:          pulumi.String("string"),
				Name:                   pulumi.String("string"),
			},
		},
		ExposedPort:     pulumi.Int(0),
		ExternalEnabled: pulumi.Bool(false),
		Fqdn:            pulumi.String("string"),
		IpSecurityRestrictions: containerapp.AppIngressIpSecurityRestrictionArray{
			&containerapp.AppIngressIpSecurityRestrictionArgs{
				Action:         pulumi.String("string"),
				IpAddressRange: pulumi.String("string"),
				Name:           pulumi.String("string"),
				Description:    pulumi.String("string"),
			},
		},
		Transport: pulumi.String("string"),
	},
	Identity: &containerapp.AppIdentityArgs{
		Type: pulumi.String("string"),
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		PrincipalId: pulumi.String("string"),
		TenantId:    pulumi.String("string"),
	},
	Secrets: containerapp.AppSecretArray{
		&containerapp.AppSecretArgs{
			Name:             pulumi.String("string"),
			Identity:         pulumi.String("string"),
			KeyVaultSecretId: pulumi.String("string"),
			Value:            pulumi.String("string"),
		},
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Dapr: &containerapp.AppDaprArgs{
		AppId:       pulumi.String("string"),
		AppPort:     pulumi.Int(0),
		AppProtocol: pulumi.String("string"),
	},
	WorkloadProfileName: pulumi.String("string"),
})
Copy
var appResource = new App("appResource", AppArgs.builder()
    .containerAppEnvironmentId("string")
    .template(AppTemplateArgs.builder()
        .containers(AppTemplateContainerArgs.builder()
            .cpu(0)
            .image("string")
            .memory("string")
            .name("string")
            .args("string")
            .commands("string")
            .envs(AppTemplateContainerEnvArgs.builder()
                .name("string")
                .secretName("string")
                .value("string")
                .build())
            .ephemeralStorage("string")
            .livenessProbes(AppTemplateContainerLivenessProbeArgs.builder()
                .port(0)
                .transport("string")
                .failureCountThreshold(0)
                .headers(AppTemplateContainerLivenessProbeHeaderArgs.builder()
                    .name("string")
                    .value("string")
                    .build())
                .host("string")
                .initialDelay(0)
                .intervalSeconds(0)
                .path("string")
                .terminationGracePeriodSeconds(0)
                .timeout(0)
                .build())
            .readinessProbes(AppTemplateContainerReadinessProbeArgs.builder()
                .port(0)
                .transport("string")
                .failureCountThreshold(0)
                .headers(AppTemplateContainerReadinessProbeHeaderArgs.builder()
                    .name("string")
                    .value("string")
                    .build())
                .host("string")
                .initialDelay(0)
                .intervalSeconds(0)
                .path("string")
                .successCountThreshold(0)
                .timeout(0)
                .build())
            .startupProbes(AppTemplateContainerStartupProbeArgs.builder()
                .port(0)
                .transport("string")
                .failureCountThreshold(0)
                .headers(AppTemplateContainerStartupProbeHeaderArgs.builder()
                    .name("string")
                    .value("string")
                    .build())
                .host("string")
                .initialDelay(0)
                .intervalSeconds(0)
                .path("string")
                .terminationGracePeriodSeconds(0)
                .timeout(0)
                .build())
            .volumeMounts(AppTemplateContainerVolumeMountArgs.builder()
                .name("string")
                .path("string")
                .subPath("string")
                .build())
            .build())
        .azureQueueScaleRules(AppTemplateAzureQueueScaleRuleArgs.builder()
            .authentications(AppTemplateAzureQueueScaleRuleAuthenticationArgs.builder()
                .secretName("string")
                .triggerParameter("string")
                .build())
            .name("string")
            .queueLength(0)
            .queueName("string")
            .build())
        .customScaleRules(AppTemplateCustomScaleRuleArgs.builder()
            .customRuleType("string")
            .metadata(Map.of("string", "string"))
            .name("string")
            .authentications(AppTemplateCustomScaleRuleAuthenticationArgs.builder()
                .secretName("string")
                .triggerParameter("string")
                .build())
            .build())
        .httpScaleRules(AppTemplateHttpScaleRuleArgs.builder()
            .concurrentRequests("string")
            .name("string")
            .authentications(AppTemplateHttpScaleRuleAuthenticationArgs.builder()
                .secretName("string")
                .triggerParameter("string")
                .build())
            .build())
        .initContainers(AppTemplateInitContainerArgs.builder()
            .image("string")
            .name("string")
            .args("string")
            .commands("string")
            .cpu(0)
            .envs(AppTemplateInitContainerEnvArgs.builder()
                .name("string")
                .secretName("string")
                .value("string")
                .build())
            .ephemeralStorage("string")
            .memory("string")
            .volumeMounts(AppTemplateInitContainerVolumeMountArgs.builder()
                .name("string")
                .path("string")
                .subPath("string")
                .build())
            .build())
        .maxReplicas(0)
        .minReplicas(0)
        .revisionSuffix("string")
        .tcpScaleRules(AppTemplateTcpScaleRuleArgs.builder()
            .concurrentRequests("string")
            .name("string")
            .authentications(AppTemplateTcpScaleRuleAuthenticationArgs.builder()
                .secretName("string")
                .triggerParameter("string")
                .build())
            .build())
        .terminationGracePeriodSeconds(0)
        .volumes(AppTemplateVolumeArgs.builder()
            .name("string")
            .mountOptions("string")
            .storageName("string")
            .storageType("string")
            .build())
        .build())
    .revisionMode("string")
    .resourceGroupName("string")
    .registries(AppRegistryArgs.builder()
        .server("string")
        .identity("string")
        .passwordSecretName("string")
        .username("string")
        .build())
    .name("string")
    .maxInactiveRevisions(0)
    .ingress(AppIngressArgs.builder()
        .targetPort(0)
        .trafficWeights(AppIngressTrafficWeightArgs.builder()
            .percentage(0)
            .label("string")
            .latestRevision(false)
            .revisionSuffix("string")
            .build())
        .allowInsecureConnections(false)
        .clientCertificateMode("string")
        .customDomains(AppIngressCustomDomainArgs.builder()
            .certificateBindingType("string")
            .certificateId("string")
            .name("string")
            .build())
        .exposedPort(0)
        .externalEnabled(false)
        .fqdn("string")
        .ipSecurityRestrictions(AppIngressIpSecurityRestrictionArgs.builder()
            .action("string")
            .ipAddressRange("string")
            .name("string")
            .description("string")
            .build())
        .transport("string")
        .build())
    .identity(AppIdentityArgs.builder()
        .type("string")
        .identityIds("string")
        .principalId("string")
        .tenantId("string")
        .build())
    .secrets(AppSecretArgs.builder()
        .name("string")
        .identity("string")
        .keyVaultSecretId("string")
        .value("string")
        .build())
    .tags(Map.of("string", "string"))
    .dapr(AppDaprArgs.builder()
        .appId("string")
        .appPort(0)
        .appProtocol("string")
        .build())
    .workloadProfileName("string")
    .build());
Copy
app_resource = azure.containerapp.App("appResource",
    container_app_environment_id="string",
    template={
        "containers": [{
            "cpu": 0,
            "image": "string",
            "memory": "string",
            "name": "string",
            "args": ["string"],
            "commands": ["string"],
            "envs": [{
                "name": "string",
                "secret_name": "string",
                "value": "string",
            }],
            "ephemeral_storage": "string",
            "liveness_probes": [{
                "port": 0,
                "transport": "string",
                "failure_count_threshold": 0,
                "headers": [{
                    "name": "string",
                    "value": "string",
                }],
                "host": "string",
                "initial_delay": 0,
                "interval_seconds": 0,
                "path": "string",
                "termination_grace_period_seconds": 0,
                "timeout": 0,
            }],
            "readiness_probes": [{
                "port": 0,
                "transport": "string",
                "failure_count_threshold": 0,
                "headers": [{
                    "name": "string",
                    "value": "string",
                }],
                "host": "string",
                "initial_delay": 0,
                "interval_seconds": 0,
                "path": "string",
                "success_count_threshold": 0,
                "timeout": 0,
            }],
            "startup_probes": [{
                "port": 0,
                "transport": "string",
                "failure_count_threshold": 0,
                "headers": [{
                    "name": "string",
                    "value": "string",
                }],
                "host": "string",
                "initial_delay": 0,
                "interval_seconds": 0,
                "path": "string",
                "termination_grace_period_seconds": 0,
                "timeout": 0,
            }],
            "volume_mounts": [{
                "name": "string",
                "path": "string",
                "sub_path": "string",
            }],
        }],
        "azure_queue_scale_rules": [{
            "authentications": [{
                "secret_name": "string",
                "trigger_parameter": "string",
            }],
            "name": "string",
            "queue_length": 0,
            "queue_name": "string",
        }],
        "custom_scale_rules": [{
            "custom_rule_type": "string",
            "metadata": {
                "string": "string",
            },
            "name": "string",
            "authentications": [{
                "secret_name": "string",
                "trigger_parameter": "string",
            }],
        }],
        "http_scale_rules": [{
            "concurrent_requests": "string",
            "name": "string",
            "authentications": [{
                "secret_name": "string",
                "trigger_parameter": "string",
            }],
        }],
        "init_containers": [{
            "image": "string",
            "name": "string",
            "args": ["string"],
            "commands": ["string"],
            "cpu": 0,
            "envs": [{
                "name": "string",
                "secret_name": "string",
                "value": "string",
            }],
            "ephemeral_storage": "string",
            "memory": "string",
            "volume_mounts": [{
                "name": "string",
                "path": "string",
                "sub_path": "string",
            }],
        }],
        "max_replicas": 0,
        "min_replicas": 0,
        "revision_suffix": "string",
        "tcp_scale_rules": [{
            "concurrent_requests": "string",
            "name": "string",
            "authentications": [{
                "secret_name": "string",
                "trigger_parameter": "string",
            }],
        }],
        "termination_grace_period_seconds": 0,
        "volumes": [{
            "name": "string",
            "mount_options": "string",
            "storage_name": "string",
            "storage_type": "string",
        }],
    },
    revision_mode="string",
    resource_group_name="string",
    registries=[{
        "server": "string",
        "identity": "string",
        "password_secret_name": "string",
        "username": "string",
    }],
    name="string",
    max_inactive_revisions=0,
    ingress={
        "target_port": 0,
        "traffic_weights": [{
            "percentage": 0,
            "label": "string",
            "latest_revision": False,
            "revision_suffix": "string",
        }],
        "allow_insecure_connections": False,
        "client_certificate_mode": "string",
        "custom_domains": [{
            "certificate_binding_type": "string",
            "certificate_id": "string",
            "name": "string",
        }],
        "exposed_port": 0,
        "external_enabled": False,
        "fqdn": "string",
        "ip_security_restrictions": [{
            "action": "string",
            "ip_address_range": "string",
            "name": "string",
            "description": "string",
        }],
        "transport": "string",
    },
    identity={
        "type": "string",
        "identity_ids": ["string"],
        "principal_id": "string",
        "tenant_id": "string",
    },
    secrets=[{
        "name": "string",
        "identity": "string",
        "key_vault_secret_id": "string",
        "value": "string",
    }],
    tags={
        "string": "string",
    },
    dapr={
        "app_id": "string",
        "app_port": 0,
        "app_protocol": "string",
    },
    workload_profile_name="string")
Copy
const appResource = new azure.containerapp.App("appResource", {
    containerAppEnvironmentId: "string",
    template: {
        containers: [{
            cpu: 0,
            image: "string",
            memory: "string",
            name: "string",
            args: ["string"],
            commands: ["string"],
            envs: [{
                name: "string",
                secretName: "string",
                value: "string",
            }],
            ephemeralStorage: "string",
            livenessProbes: [{
                port: 0,
                transport: "string",
                failureCountThreshold: 0,
                headers: [{
                    name: "string",
                    value: "string",
                }],
                host: "string",
                initialDelay: 0,
                intervalSeconds: 0,
                path: "string",
                terminationGracePeriodSeconds: 0,
                timeout: 0,
            }],
            readinessProbes: [{
                port: 0,
                transport: "string",
                failureCountThreshold: 0,
                headers: [{
                    name: "string",
                    value: "string",
                }],
                host: "string",
                initialDelay: 0,
                intervalSeconds: 0,
                path: "string",
                successCountThreshold: 0,
                timeout: 0,
            }],
            startupProbes: [{
                port: 0,
                transport: "string",
                failureCountThreshold: 0,
                headers: [{
                    name: "string",
                    value: "string",
                }],
                host: "string",
                initialDelay: 0,
                intervalSeconds: 0,
                path: "string",
                terminationGracePeriodSeconds: 0,
                timeout: 0,
            }],
            volumeMounts: [{
                name: "string",
                path: "string",
                subPath: "string",
            }],
        }],
        azureQueueScaleRules: [{
            authentications: [{
                secretName: "string",
                triggerParameter: "string",
            }],
            name: "string",
            queueLength: 0,
            queueName: "string",
        }],
        customScaleRules: [{
            customRuleType: "string",
            metadata: {
                string: "string",
            },
            name: "string",
            authentications: [{
                secretName: "string",
                triggerParameter: "string",
            }],
        }],
        httpScaleRules: [{
            concurrentRequests: "string",
            name: "string",
            authentications: [{
                secretName: "string",
                triggerParameter: "string",
            }],
        }],
        initContainers: [{
            image: "string",
            name: "string",
            args: ["string"],
            commands: ["string"],
            cpu: 0,
            envs: [{
                name: "string",
                secretName: "string",
                value: "string",
            }],
            ephemeralStorage: "string",
            memory: "string",
            volumeMounts: [{
                name: "string",
                path: "string",
                subPath: "string",
            }],
        }],
        maxReplicas: 0,
        minReplicas: 0,
        revisionSuffix: "string",
        tcpScaleRules: [{
            concurrentRequests: "string",
            name: "string",
            authentications: [{
                secretName: "string",
                triggerParameter: "string",
            }],
        }],
        terminationGracePeriodSeconds: 0,
        volumes: [{
            name: "string",
            mountOptions: "string",
            storageName: "string",
            storageType: "string",
        }],
    },
    revisionMode: "string",
    resourceGroupName: "string",
    registries: [{
        server: "string",
        identity: "string",
        passwordSecretName: "string",
        username: "string",
    }],
    name: "string",
    maxInactiveRevisions: 0,
    ingress: {
        targetPort: 0,
        trafficWeights: [{
            percentage: 0,
            label: "string",
            latestRevision: false,
            revisionSuffix: "string",
        }],
        allowInsecureConnections: false,
        clientCertificateMode: "string",
        customDomains: [{
            certificateBindingType: "string",
            certificateId: "string",
            name: "string",
        }],
        exposedPort: 0,
        externalEnabled: false,
        fqdn: "string",
        ipSecurityRestrictions: [{
            action: "string",
            ipAddressRange: "string",
            name: "string",
            description: "string",
        }],
        transport: "string",
    },
    identity: {
        type: "string",
        identityIds: ["string"],
        principalId: "string",
        tenantId: "string",
    },
    secrets: [{
        name: "string",
        identity: "string",
        keyVaultSecretId: "string",
        value: "string",
    }],
    tags: {
        string: "string",
    },
    dapr: {
        appId: "string",
        appPort: 0,
        appProtocol: "string",
    },
    workloadProfileName: "string",
});
Copy
type: azure:containerapp:App
properties:
    containerAppEnvironmentId: string
    dapr:
        appId: string
        appPort: 0
        appProtocol: string
    identity:
        identityIds:
            - string
        principalId: string
        tenantId: string
        type: string
    ingress:
        allowInsecureConnections: false
        clientCertificateMode: string
        customDomains:
            - certificateBindingType: string
              certificateId: string
              name: string
        exposedPort: 0
        externalEnabled: false
        fqdn: string
        ipSecurityRestrictions:
            - action: string
              description: string
              ipAddressRange: string
              name: string
        targetPort: 0
        trafficWeights:
            - label: string
              latestRevision: false
              percentage: 0
              revisionSuffix: string
        transport: string
    maxInactiveRevisions: 0
    name: string
    registries:
        - identity: string
          passwordSecretName: string
          server: string
          username: string
    resourceGroupName: string
    revisionMode: string
    secrets:
        - identity: string
          keyVaultSecretId: string
          name: string
          value: string
    tags:
        string: string
    template:
        azureQueueScaleRules:
            - authentications:
                - secretName: string
                  triggerParameter: string
              name: string
              queueLength: 0
              queueName: string
        containers:
            - args:
                - string
              commands:
                - string
              cpu: 0
              envs:
                - name: string
                  secretName: string
                  value: string
              ephemeralStorage: string
              image: string
              livenessProbes:
                - failureCountThreshold: 0
                  headers:
                    - name: string
                      value: string
                  host: string
                  initialDelay: 0
                  intervalSeconds: 0
                  path: string
                  port: 0
                  terminationGracePeriodSeconds: 0
                  timeout: 0
                  transport: string
              memory: string
              name: string
              readinessProbes:
                - failureCountThreshold: 0
                  headers:
                    - name: string
                      value: string
                  host: string
                  initialDelay: 0
                  intervalSeconds: 0
                  path: string
                  port: 0
                  successCountThreshold: 0
                  timeout: 0
                  transport: string
              startupProbes:
                - failureCountThreshold: 0
                  headers:
                    - name: string
                      value: string
                  host: string
                  initialDelay: 0
                  intervalSeconds: 0
                  path: string
                  port: 0
                  terminationGracePeriodSeconds: 0
                  timeout: 0
                  transport: string
              volumeMounts:
                - name: string
                  path: string
                  subPath: string
        customScaleRules:
            - authentications:
                - secretName: string
                  triggerParameter: string
              customRuleType: string
              metadata:
                string: string
              name: string
        httpScaleRules:
            - authentications:
                - secretName: string
                  triggerParameter: string
              concurrentRequests: string
              name: string
        initContainers:
            - args:
                - string
              commands:
                - string
              cpu: 0
              envs:
                - name: string
                  secretName: string
                  value: string
              ephemeralStorage: string
              image: string
              memory: string
              name: string
              volumeMounts:
                - name: string
                  path: string
                  subPath: string
        maxReplicas: 0
        minReplicas: 0
        revisionSuffix: string
        tcpScaleRules:
            - authentications:
                - secretName: string
                  triggerParameter: string
              concurrentRequests: string
              name: string
        terminationGracePeriodSeconds: 0
        volumes:
            - mountOptions: string
              name: string
              storageName: string
              storageType: string
    workloadProfileName: string
Copy

App 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 App resource accepts the following input properties:

ContainerAppEnvironmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
RevisionMode This property is required. string
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
Template This property is required. AppTemplate
A template block as detailed below.
Dapr AppDapr
A dapr block as detailed below.
Identity AppIdentity
An identity block as detailed below.
Ingress AppIngress
An ingress block as detailed below.
MaxInactiveRevisions int
The maximum of inactive revisions allowed for this Container App.
Name Changes to this property will trigger replacement. string
The name for this Container App. Changing this forces a new resource to be created.
Registries List<AppRegistry>
A registry block as detailed below.
Secrets List<AppSecret>
One or more secret block as detailed below.
Tags Dictionary<string, string>
A mapping of tags to assign to the Container App.
WorkloadProfileName string

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

ContainerAppEnvironmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
RevisionMode This property is required. string
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
Template This property is required. AppTemplateArgs
A template block as detailed below.
Dapr AppDaprArgs
A dapr block as detailed below.
Identity AppIdentityArgs
An identity block as detailed below.
Ingress AppIngressArgs
An ingress block as detailed below.
MaxInactiveRevisions int
The maximum of inactive revisions allowed for this Container App.
Name Changes to this property will trigger replacement. string
The name for this Container App. Changing this forces a new resource to be created.
Registries []AppRegistryArgs
A registry block as detailed below.
Secrets []AppSecretArgs
One or more secret block as detailed below.
Tags map[string]string
A mapping of tags to assign to the Container App.
WorkloadProfileName string

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

containerAppEnvironmentId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
revisionMode This property is required. String
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
template This property is required. AppTemplate
A template block as detailed below.
dapr AppDapr
A dapr block as detailed below.
identity AppIdentity
An identity block as detailed below.
ingress AppIngress
An ingress block as detailed below.
maxInactiveRevisions Integer
The maximum of inactive revisions allowed for this Container App.
name Changes to this property will trigger replacement. String
The name for this Container App. Changing this forces a new resource to be created.
registries List<AppRegistry>
A registry block as detailed below.
secrets List<AppSecret>
One or more secret block as detailed below.
tags Map<String,String>
A mapping of tags to assign to the Container App.
workloadProfileName String

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

containerAppEnvironmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
revisionMode This property is required. string
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
template This property is required. AppTemplate
A template block as detailed below.
dapr AppDapr
A dapr block as detailed below.
identity AppIdentity
An identity block as detailed below.
ingress AppIngress
An ingress block as detailed below.
maxInactiveRevisions number
The maximum of inactive revisions allowed for this Container App.
name Changes to this property will trigger replacement. string
The name for this Container App. Changing this forces a new resource to be created.
registries AppRegistry[]
A registry block as detailed below.
secrets AppSecret[]
One or more secret block as detailed below.
tags {[key: string]: string}
A mapping of tags to assign to the Container App.
workloadProfileName string

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

container_app_environment_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
revision_mode This property is required. str
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
template This property is required. AppTemplateArgs
A template block as detailed below.
dapr AppDaprArgs
A dapr block as detailed below.
identity AppIdentityArgs
An identity block as detailed below.
ingress AppIngressArgs
An ingress block as detailed below.
max_inactive_revisions int
The maximum of inactive revisions allowed for this Container App.
name Changes to this property will trigger replacement. str
The name for this Container App. Changing this forces a new resource to be created.
registries Sequence[AppRegistryArgs]
A registry block as detailed below.
secrets Sequence[AppSecretArgs]
One or more secret block as detailed below.
tags Mapping[str, str]
A mapping of tags to assign to the Container App.
workload_profile_name str

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

containerAppEnvironmentId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
revisionMode This property is required. String
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
template This property is required. Property Map
A template block as detailed below.
dapr Property Map
A dapr block as detailed below.
identity Property Map
An identity block as detailed below.
ingress Property Map
An ingress block as detailed below.
maxInactiveRevisions Number
The maximum of inactive revisions allowed for this Container App.
name Changes to this property will trigger replacement. String
The name for this Container App. Changing this forces a new resource to be created.
registries List<Property Map>
A registry block as detailed below.
secrets List<Property Map>
One or more secret block as detailed below.
tags Map<String>
A mapping of tags to assign to the Container App.
workloadProfileName String

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

Outputs

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

CustomDomainVerificationId string
The ID of the Custom Domain Verification for this Container App.
Id string
The provider-assigned unique ID for this managed resource.
LatestRevisionFqdn string
The FQDN of the Latest Revision of the Container App.
LatestRevisionName string
The name of the latest Container Revision.
Location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
OutboundIpAddresses List<string>
A list of the Public IP Addresses which the Container App uses for outbound network access.
CustomDomainVerificationId string
The ID of the Custom Domain Verification for this Container App.
Id string
The provider-assigned unique ID for this managed resource.
LatestRevisionFqdn string
The FQDN of the Latest Revision of the Container App.
LatestRevisionName string
The name of the latest Container Revision.
Location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
OutboundIpAddresses []string
A list of the Public IP Addresses which the Container App uses for outbound network access.
customDomainVerificationId String
The ID of the Custom Domain Verification for this Container App.
id String
The provider-assigned unique ID for this managed resource.
latestRevisionFqdn String
The FQDN of the Latest Revision of the Container App.
latestRevisionName String
The name of the latest Container Revision.
location String
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
outboundIpAddresses List<String>
A list of the Public IP Addresses which the Container App uses for outbound network access.
customDomainVerificationId string
The ID of the Custom Domain Verification for this Container App.
id string
The provider-assigned unique ID for this managed resource.
latestRevisionFqdn string
The FQDN of the Latest Revision of the Container App.
latestRevisionName string
The name of the latest Container Revision.
location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
outboundIpAddresses string[]
A list of the Public IP Addresses which the Container App uses for outbound network access.
custom_domain_verification_id str
The ID of the Custom Domain Verification for this Container App.
id str
The provider-assigned unique ID for this managed resource.
latest_revision_fqdn str
The FQDN of the Latest Revision of the Container App.
latest_revision_name str
The name of the latest Container Revision.
location str
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
outbound_ip_addresses Sequence[str]
A list of the Public IP Addresses which the Container App uses for outbound network access.
customDomainVerificationId String
The ID of the Custom Domain Verification for this Container App.
id String
The provider-assigned unique ID for this managed resource.
latestRevisionFqdn String
The FQDN of the Latest Revision of the Container App.
latestRevisionName String
The name of the latest Container Revision.
location String
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
outboundIpAddresses List<String>
A list of the Public IP Addresses which the Container App uses for outbound network access.

Look up Existing App Resource

Get an existing App resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AppState, opts?: CustomResourceOptions): App
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        container_app_environment_id: Optional[str] = None,
        custom_domain_verification_id: Optional[str] = None,
        dapr: Optional[AppDaprArgs] = None,
        identity: Optional[AppIdentityArgs] = None,
        ingress: Optional[AppIngressArgs] = None,
        latest_revision_fqdn: Optional[str] = None,
        latest_revision_name: Optional[str] = None,
        location: Optional[str] = None,
        max_inactive_revisions: Optional[int] = None,
        name: Optional[str] = None,
        outbound_ip_addresses: Optional[Sequence[str]] = None,
        registries: Optional[Sequence[AppRegistryArgs]] = None,
        resource_group_name: Optional[str] = None,
        revision_mode: Optional[str] = None,
        secrets: Optional[Sequence[AppSecretArgs]] = None,
        tags: Optional[Mapping[str, str]] = None,
        template: Optional[AppTemplateArgs] = None,
        workload_profile_name: Optional[str] = None) -> App
func GetApp(ctx *Context, name string, id IDInput, state *AppState, opts ...ResourceOption) (*App, error)
public static App Get(string name, Input<string> id, AppState? state, CustomResourceOptions? opts = null)
public static App get(String name, Output<String> id, AppState state, CustomResourceOptions options)
resources:  _:    type: azure:containerapp:App    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ContainerAppEnvironmentId Changes to this property will trigger replacement. string
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
CustomDomainVerificationId string
The ID of the Custom Domain Verification for this Container App.
Dapr AppDapr
A dapr block as detailed below.
Identity AppIdentity
An identity block as detailed below.
Ingress AppIngress
An ingress block as detailed below.
LatestRevisionFqdn string
The FQDN of the Latest Revision of the Container App.
LatestRevisionName string
The name of the latest Container Revision.
Location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
MaxInactiveRevisions int
The maximum of inactive revisions allowed for this Container App.
Name Changes to this property will trigger replacement. string
The name for this Container App. Changing this forces a new resource to be created.
OutboundIpAddresses List<string>
A list of the Public IP Addresses which the Container App uses for outbound network access.
Registries List<AppRegistry>
A registry block as detailed below.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
RevisionMode string
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
Secrets List<AppSecret>
One or more secret block as detailed below.
Tags Dictionary<string, string>
A mapping of tags to assign to the Container App.
Template AppTemplate
A template block as detailed below.
WorkloadProfileName string

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

ContainerAppEnvironmentId Changes to this property will trigger replacement. string
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
CustomDomainVerificationId string
The ID of the Custom Domain Verification for this Container App.
Dapr AppDaprArgs
A dapr block as detailed below.
Identity AppIdentityArgs
An identity block as detailed below.
Ingress AppIngressArgs
An ingress block as detailed below.
LatestRevisionFqdn string
The FQDN of the Latest Revision of the Container App.
LatestRevisionName string
The name of the latest Container Revision.
Location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
MaxInactiveRevisions int
The maximum of inactive revisions allowed for this Container App.
Name Changes to this property will trigger replacement. string
The name for this Container App. Changing this forces a new resource to be created.
OutboundIpAddresses []string
A list of the Public IP Addresses which the Container App uses for outbound network access.
Registries []AppRegistryArgs
A registry block as detailed below.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
RevisionMode string
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
Secrets []AppSecretArgs
One or more secret block as detailed below.
Tags map[string]string
A mapping of tags to assign to the Container App.
Template AppTemplateArgs
A template block as detailed below.
WorkloadProfileName string

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

containerAppEnvironmentId Changes to this property will trigger replacement. String
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
customDomainVerificationId String
The ID of the Custom Domain Verification for this Container App.
dapr AppDapr
A dapr block as detailed below.
identity AppIdentity
An identity block as detailed below.
ingress AppIngress
An ingress block as detailed below.
latestRevisionFqdn String
The FQDN of the Latest Revision of the Container App.
latestRevisionName String
The name of the latest Container Revision.
location String
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
maxInactiveRevisions Integer
The maximum of inactive revisions allowed for this Container App.
name Changes to this property will trigger replacement. String
The name for this Container App. Changing this forces a new resource to be created.
outboundIpAddresses List<String>
A list of the Public IP Addresses which the Container App uses for outbound network access.
registries List<AppRegistry>
A registry block as detailed below.
resourceGroupName Changes to this property will trigger replacement. String
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
revisionMode String
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
secrets List<AppSecret>
One or more secret block as detailed below.
tags Map<String,String>
A mapping of tags to assign to the Container App.
template AppTemplate
A template block as detailed below.
workloadProfileName String

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

containerAppEnvironmentId Changes to this property will trigger replacement. string
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
customDomainVerificationId string
The ID of the Custom Domain Verification for this Container App.
dapr AppDapr
A dapr block as detailed below.
identity AppIdentity
An identity block as detailed below.
ingress AppIngress
An ingress block as detailed below.
latestRevisionFqdn string
The FQDN of the Latest Revision of the Container App.
latestRevisionName string
The name of the latest Container Revision.
location string
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
maxInactiveRevisions number
The maximum of inactive revisions allowed for this Container App.
name Changes to this property will trigger replacement. string
The name for this Container App. Changing this forces a new resource to be created.
outboundIpAddresses string[]
A list of the Public IP Addresses which the Container App uses for outbound network access.
registries AppRegistry[]
A registry block as detailed below.
resourceGroupName Changes to this property will trigger replacement. string
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
revisionMode string
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
secrets AppSecret[]
One or more secret block as detailed below.
tags {[key: string]: string}
A mapping of tags to assign to the Container App.
template AppTemplate
A template block as detailed below.
workloadProfileName string

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

container_app_environment_id Changes to this property will trigger replacement. str
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
custom_domain_verification_id str
The ID of the Custom Domain Verification for this Container App.
dapr AppDaprArgs
A dapr block as detailed below.
identity AppIdentityArgs
An identity block as detailed below.
ingress AppIngressArgs
An ingress block as detailed below.
latest_revision_fqdn str
The FQDN of the Latest Revision of the Container App.
latest_revision_name str
The name of the latest Container Revision.
location str
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
max_inactive_revisions int
The maximum of inactive revisions allowed for this Container App.
name Changes to this property will trigger replacement. str
The name for this Container App. Changing this forces a new resource to be created.
outbound_ip_addresses Sequence[str]
A list of the Public IP Addresses which the Container App uses for outbound network access.
registries Sequence[AppRegistryArgs]
A registry block as detailed below.
resource_group_name Changes to this property will trigger replacement. str
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
revision_mode str
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
secrets Sequence[AppSecretArgs]
One or more secret block as detailed below.
tags Mapping[str, str]
A mapping of tags to assign to the Container App.
template AppTemplateArgs
A template block as detailed below.
workload_profile_name str

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

containerAppEnvironmentId Changes to this property will trigger replacement. String
The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
customDomainVerificationId String
The ID of the Custom Domain Verification for this Container App.
dapr Property Map
A dapr block as detailed below.
identity Property Map
An identity block as detailed below.
ingress Property Map
An ingress block as detailed below.
latestRevisionFqdn String
The FQDN of the Latest Revision of the Container App.
latestRevisionName String
The name of the latest Container Revision.
location String
The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
maxInactiveRevisions Number
The maximum of inactive revisions allowed for this Container App.
name Changes to this property will trigger replacement. String
The name for this Container App. Changing this forces a new resource to be created.
outboundIpAddresses List<String>
A list of the Public IP Addresses which the Container App uses for outbound network access.
registries List<Property Map>
A registry block as detailed below.
resourceGroupName Changes to this property will trigger replacement. String
The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
revisionMode String
The revisions operational mode for the Container App. Possible values include Single and Multiple. In Single mode, a single revision is in operation at any given time. In Multiple mode, more than one revision can be active at a time and can be configured with load distribution via the traffic_weight block in the ingress configuration.
secrets List<Property Map>
One or more secret block as detailed below.
tags Map<String>
A mapping of tags to assign to the Container App.
template Property Map
A template block as detailed below.
workloadProfileName String

The name of the Workload Profile in the Container App Environment to place this Container App.

Note: Omit this value to use the default Consumption Workload Profile.

Supporting Types

AppDapr
, AppDaprArgs

AppId This property is required. string
The Dapr Application Identifier.
AppPort int
The port which the application is listening on. This is the same as the ingress port.
AppProtocol string
The protocol for the app. Possible values include http and grpc. Defaults to http.
AppId This property is required. string
The Dapr Application Identifier.
AppPort int
The port which the application is listening on. This is the same as the ingress port.
AppProtocol string
The protocol for the app. Possible values include http and grpc. Defaults to http.
appId This property is required. String
The Dapr Application Identifier.
appPort Integer
The port which the application is listening on. This is the same as the ingress port.
appProtocol String
The protocol for the app. Possible values include http and grpc. Defaults to http.
appId This property is required. string
The Dapr Application Identifier.
appPort number
The port which the application is listening on. This is the same as the ingress port.
appProtocol string
The protocol for the app. Possible values include http and grpc. Defaults to http.
app_id This property is required. str
The Dapr Application Identifier.
app_port int
The port which the application is listening on. This is the same as the ingress port.
app_protocol str
The protocol for the app. Possible values include http and grpc. Defaults to http.
appId This property is required. String
The Dapr Application Identifier.
appPort Number
The port which the application is listening on. This is the same as the ingress port.
appProtocol String
The protocol for the app. Possible values include http and grpc. Defaults to http.

AppIdentity
, AppIdentityArgs

Type This property is required. string
The type of managed identity to assign. Possible values are SystemAssigned, UserAssigned, and SystemAssigned, UserAssigned (to enable both).
IdentityIds List<string>
A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when type is set to UserAssigned or SystemAssigned, UserAssigned.
PrincipalId string
TenantId string
Type This property is required. string
The type of managed identity to assign. Possible values are SystemAssigned, UserAssigned, and SystemAssigned, UserAssigned (to enable both).
IdentityIds []string
A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when type is set to UserAssigned or SystemAssigned, UserAssigned.
PrincipalId string
TenantId string
type This property is required. String
The type of managed identity to assign. Possible values are SystemAssigned, UserAssigned, and SystemAssigned, UserAssigned (to enable both).
identityIds List<String>
A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when type is set to UserAssigned or SystemAssigned, UserAssigned.
principalId String
tenantId String
type This property is required. string
The type of managed identity to assign. Possible values are SystemAssigned, UserAssigned, and SystemAssigned, UserAssigned (to enable both).
identityIds string[]
A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when type is set to UserAssigned or SystemAssigned, UserAssigned.
principalId string
tenantId string
type This property is required. str
The type of managed identity to assign. Possible values are SystemAssigned, UserAssigned, and SystemAssigned, UserAssigned (to enable both).
identity_ids Sequence[str]
A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when type is set to UserAssigned or SystemAssigned, UserAssigned.
principal_id str
tenant_id str
type This property is required. String
The type of managed identity to assign. Possible values are SystemAssigned, UserAssigned, and SystemAssigned, UserAssigned (to enable both).
identityIds List<String>
A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when type is set to UserAssigned or SystemAssigned, UserAssigned.
principalId String
tenantId String

AppIngress
, AppIngressArgs

TargetPort This property is required. int
The target port on the container for the Ingress traffic.
TrafficWeights This property is required. List<AppIngressTrafficWeight>
One or more traffic_weight blocks as detailed below.
AllowInsecureConnections bool
Should this ingress allow insecure connections?
ClientCertificateMode string
The client certificate mode for the Ingress. Possible values are require, accept, and ignore.
CustomDomains List<AppIngressCustomDomain>
One or more custom_domain block as detailed below.
ExposedPort int

The exposed port on the container for the Ingress traffic.

Note: exposed_port can only be specified when transport is set to tcp.

ExternalEnabled bool
Are connections to this Ingress from outside the Container App Environment enabled? Defaults to false.
Fqdn string
The FQDN of the ingress.
IpSecurityRestrictions List<AppIngressIpSecurityRestriction>
One or more ip_security_restriction blocks for IP-filtering rules as defined below.
Transport string

The transport method for the Ingress. Possible values are auto, http, http2 and tcp. Defaults to auto.

Note: if transport is set to tcp, exposed_port and target_port should be set at the same time.

TargetPort This property is required. int
The target port on the container for the Ingress traffic.
TrafficWeights This property is required. []AppIngressTrafficWeight
One or more traffic_weight blocks as detailed below.
AllowInsecureConnections bool
Should this ingress allow insecure connections?
ClientCertificateMode string
The client certificate mode for the Ingress. Possible values are require, accept, and ignore.
CustomDomains []AppIngressCustomDomain
One or more custom_domain block as detailed below.
ExposedPort int

The exposed port on the container for the Ingress traffic.

Note: exposed_port can only be specified when transport is set to tcp.

ExternalEnabled bool
Are connections to this Ingress from outside the Container App Environment enabled? Defaults to false.
Fqdn string
The FQDN of the ingress.
IpSecurityRestrictions []AppIngressIpSecurityRestriction
One or more ip_security_restriction blocks for IP-filtering rules as defined below.
Transport string

The transport method for the Ingress. Possible values are auto, http, http2 and tcp. Defaults to auto.

Note: if transport is set to tcp, exposed_port and target_port should be set at the same time.

targetPort This property is required. Integer
The target port on the container for the Ingress traffic.
trafficWeights This property is required. List<AppIngressTrafficWeight>
One or more traffic_weight blocks as detailed below.
allowInsecureConnections Boolean
Should this ingress allow insecure connections?
clientCertificateMode String
The client certificate mode for the Ingress. Possible values are require, accept, and ignore.
customDomains List<AppIngressCustomDomain>
One or more custom_domain block as detailed below.
exposedPort Integer

The exposed port on the container for the Ingress traffic.

Note: exposed_port can only be specified when transport is set to tcp.

externalEnabled Boolean
Are connections to this Ingress from outside the Container App Environment enabled? Defaults to false.
fqdn String
The FQDN of the ingress.
ipSecurityRestrictions List<AppIngressIpSecurityRestriction>
One or more ip_security_restriction blocks for IP-filtering rules as defined below.
transport String

The transport method for the Ingress. Possible values are auto, http, http2 and tcp. Defaults to auto.

Note: if transport is set to tcp, exposed_port and target_port should be set at the same time.

targetPort This property is required. number
The target port on the container for the Ingress traffic.
trafficWeights This property is required. AppIngressTrafficWeight[]
One or more traffic_weight blocks as detailed below.
allowInsecureConnections boolean
Should this ingress allow insecure connections?
clientCertificateMode string
The client certificate mode for the Ingress. Possible values are require, accept, and ignore.
customDomains AppIngressCustomDomain[]
One or more custom_domain block as detailed below.
exposedPort number

The exposed port on the container for the Ingress traffic.

Note: exposed_port can only be specified when transport is set to tcp.

externalEnabled boolean
Are connections to this Ingress from outside the Container App Environment enabled? Defaults to false.
fqdn string
The FQDN of the ingress.
ipSecurityRestrictions AppIngressIpSecurityRestriction[]
One or more ip_security_restriction blocks for IP-filtering rules as defined below.
transport string

The transport method for the Ingress. Possible values are auto, http, http2 and tcp. Defaults to auto.

Note: if transport is set to tcp, exposed_port and target_port should be set at the same time.

target_port This property is required. int
The target port on the container for the Ingress traffic.
traffic_weights This property is required. Sequence[AppIngressTrafficWeight]
One or more traffic_weight blocks as detailed below.
allow_insecure_connections bool
Should this ingress allow insecure connections?
client_certificate_mode str
The client certificate mode for the Ingress. Possible values are require, accept, and ignore.
custom_domains Sequence[AppIngressCustomDomain]
One or more custom_domain block as detailed below.
exposed_port int

The exposed port on the container for the Ingress traffic.

Note: exposed_port can only be specified when transport is set to tcp.

external_enabled bool
Are connections to this Ingress from outside the Container App Environment enabled? Defaults to false.
fqdn str
The FQDN of the ingress.
ip_security_restrictions Sequence[AppIngressIpSecurityRestriction]
One or more ip_security_restriction blocks for IP-filtering rules as defined below.
transport str

The transport method for the Ingress. Possible values are auto, http, http2 and tcp. Defaults to auto.

Note: if transport is set to tcp, exposed_port and target_port should be set at the same time.

targetPort This property is required. Number
The target port on the container for the Ingress traffic.
trafficWeights This property is required. List<Property Map>
One or more traffic_weight blocks as detailed below.
allowInsecureConnections Boolean
Should this ingress allow insecure connections?
clientCertificateMode String
The client certificate mode for the Ingress. Possible values are require, accept, and ignore.
customDomains List<Property Map>
One or more custom_domain block as detailed below.
exposedPort Number

The exposed port on the container for the Ingress traffic.

Note: exposed_port can only be specified when transport is set to tcp.

externalEnabled Boolean
Are connections to this Ingress from outside the Container App Environment enabled? Defaults to false.
fqdn String
The FQDN of the ingress.
ipSecurityRestrictions List<Property Map>
One or more ip_security_restriction blocks for IP-filtering rules as defined below.
transport String

The transport method for the Ingress. Possible values are auto, http, http2 and tcp. Defaults to auto.

Note: if transport is set to tcp, exposed_port and target_port should be set at the same time.

AppIngressCustomDomain
, AppIngressCustomDomainArgs

CertificateBindingType string
The Binding type.
CertificateId string
The ID of the Container App Environment Certificate.
Name string
The name for this Container App. Changing this forces a new resource to be created.
CertificateBindingType string
The Binding type.
CertificateId string
The ID of the Container App Environment Certificate.
Name string
The name for this Container App. Changing this forces a new resource to be created.
certificateBindingType String
The Binding type.
certificateId String
The ID of the Container App Environment Certificate.
name String
The name for this Container App. Changing this forces a new resource to be created.
certificateBindingType string
The Binding type.
certificateId string
The ID of the Container App Environment Certificate.
name string
The name for this Container App. Changing this forces a new resource to be created.
certificate_binding_type str
The Binding type.
certificate_id str
The ID of the Container App Environment Certificate.
name str
The name for this Container App. Changing this forces a new resource to be created.
certificateBindingType String
The Binding type.
certificateId String
The ID of the Container App Environment Certificate.
name String
The name for this Container App. Changing this forces a new resource to be created.

AppIngressIpSecurityRestriction
, AppIngressIpSecurityRestrictionArgs

Action This property is required. string

The IP-filter action. Allow or Deny.

NOTE: The action types in an all ip_security_restriction blocks must be the same for the ingress, mixing Allow and Deny rules is not currently supported by the service.

IpAddressRange This property is required. string
The incoming IP address or range of IP addresses (in CIDR notation).
Name This property is required. string
Name for the IP restriction rule.
Description string
Describe the IP restriction rule that is being sent to the container-app.
Action This property is required. string

The IP-filter action. Allow or Deny.

NOTE: The action types in an all ip_security_restriction blocks must be the same for the ingress, mixing Allow and Deny rules is not currently supported by the service.

IpAddressRange This property is required. string
The incoming IP address or range of IP addresses (in CIDR notation).
Name This property is required. string
Name for the IP restriction rule.
Description string
Describe the IP restriction rule that is being sent to the container-app.
action This property is required. String

The IP-filter action. Allow or Deny.

NOTE: The action types in an all ip_security_restriction blocks must be the same for the ingress, mixing Allow and Deny rules is not currently supported by the service.

ipAddressRange This property is required. String
The incoming IP address or range of IP addresses (in CIDR notation).
name This property is required. String
Name for the IP restriction rule.
description String
Describe the IP restriction rule that is being sent to the container-app.
action This property is required. string

The IP-filter action. Allow or Deny.

NOTE: The action types in an all ip_security_restriction blocks must be the same for the ingress, mixing Allow and Deny rules is not currently supported by the service.

ipAddressRange This property is required. string
The incoming IP address or range of IP addresses (in CIDR notation).
name This property is required. string
Name for the IP restriction rule.
description string
Describe the IP restriction rule that is being sent to the container-app.
action This property is required. str

The IP-filter action. Allow or Deny.

NOTE: The action types in an all ip_security_restriction blocks must be the same for the ingress, mixing Allow and Deny rules is not currently supported by the service.

ip_address_range This property is required. str
The incoming IP address or range of IP addresses (in CIDR notation).
name This property is required. str
Name for the IP restriction rule.
description str
Describe the IP restriction rule that is being sent to the container-app.
action This property is required. String

The IP-filter action. Allow or Deny.

NOTE: The action types in an all ip_security_restriction blocks must be the same for the ingress, mixing Allow and Deny rules is not currently supported by the service.

ipAddressRange This property is required. String
The incoming IP address or range of IP addresses (in CIDR notation).
name This property is required. String
Name for the IP restriction rule.
description String
Describe the IP restriction rule that is being sent to the container-app.

AppIngressTrafficWeight
, AppIngressTrafficWeightArgs

Percentage This property is required. int

The percentage of traffic which should be sent this revision.

Note: The cumulative values for weight must equal 100 exactly and explicitly, no default weights are assumed.

Label string
The label to apply to the revision as a name prefix for routing traffic.
LatestRevision bool
This traffic Weight applies to the latest stable Container Revision. At most only one traffic_weight block can have the latest_revision set to true.
RevisionSuffix string

The suffix string to which this traffic_weight applies.

Note: If latest_revision is false, the revision_suffix shall be specified.

Percentage This property is required. int

The percentage of traffic which should be sent this revision.

Note: The cumulative values for weight must equal 100 exactly and explicitly, no default weights are assumed.

Label string
The label to apply to the revision as a name prefix for routing traffic.
LatestRevision bool
This traffic Weight applies to the latest stable Container Revision. At most only one traffic_weight block can have the latest_revision set to true.
RevisionSuffix string

The suffix string to which this traffic_weight applies.

Note: If latest_revision is false, the revision_suffix shall be specified.

percentage This property is required. Integer

The percentage of traffic which should be sent this revision.

Note: The cumulative values for weight must equal 100 exactly and explicitly, no default weights are assumed.

label String
The label to apply to the revision as a name prefix for routing traffic.
latestRevision Boolean
This traffic Weight applies to the latest stable Container Revision. At most only one traffic_weight block can have the latest_revision set to true.
revisionSuffix String

The suffix string to which this traffic_weight applies.

Note: If latest_revision is false, the revision_suffix shall be specified.

percentage This property is required. number

The percentage of traffic which should be sent this revision.

Note: The cumulative values for weight must equal 100 exactly and explicitly, no default weights are assumed.

label string
The label to apply to the revision as a name prefix for routing traffic.
latestRevision boolean
This traffic Weight applies to the latest stable Container Revision. At most only one traffic_weight block can have the latest_revision set to true.
revisionSuffix string

The suffix string to which this traffic_weight applies.

Note: If latest_revision is false, the revision_suffix shall be specified.

percentage This property is required. int

The percentage of traffic which should be sent this revision.

Note: The cumulative values for weight must equal 100 exactly and explicitly, no default weights are assumed.

label str
The label to apply to the revision as a name prefix for routing traffic.
latest_revision bool
This traffic Weight applies to the latest stable Container Revision. At most only one traffic_weight block can have the latest_revision set to true.
revision_suffix str

The suffix string to which this traffic_weight applies.

Note: If latest_revision is false, the revision_suffix shall be specified.

percentage This property is required. Number

The percentage of traffic which should be sent this revision.

Note: The cumulative values for weight must equal 100 exactly and explicitly, no default weights are assumed.

label String
The label to apply to the revision as a name prefix for routing traffic.
latestRevision Boolean
This traffic Weight applies to the latest stable Container Revision. At most only one traffic_weight block can have the latest_revision set to true.
revisionSuffix String

The suffix string to which this traffic_weight applies.

Note: If latest_revision is false, the revision_suffix shall be specified.

AppRegistry
, AppRegistryArgs

Server This property is required. string

The hostname for the Container Registry.

The authentication details must also be supplied, identity and username/password_secret_name are mutually exclusive.

Identity string

Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.

Note: The Resource ID must be of a User Assigned Managed identity defined in an identity block.

PasswordSecretName string
The name of the Secret Reference containing the password value for this user on the Container Registry, username must also be supplied.
Username string
The username to use for this Container Registry, password_secret_name must also be supplied..
Server This property is required. string

The hostname for the Container Registry.

The authentication details must also be supplied, identity and username/password_secret_name are mutually exclusive.

Identity string

Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.

Note: The Resource ID must be of a User Assigned Managed identity defined in an identity block.

PasswordSecretName string
The name of the Secret Reference containing the password value for this user on the Container Registry, username must also be supplied.
Username string
The username to use for this Container Registry, password_secret_name must also be supplied..
server This property is required. String

The hostname for the Container Registry.

The authentication details must also be supplied, identity and username/password_secret_name are mutually exclusive.

identity String

Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.

Note: The Resource ID must be of a User Assigned Managed identity defined in an identity block.

passwordSecretName String
The name of the Secret Reference containing the password value for this user on the Container Registry, username must also be supplied.
username String
The username to use for this Container Registry, password_secret_name must also be supplied..
server This property is required. string

The hostname for the Container Registry.

The authentication details must also be supplied, identity and username/password_secret_name are mutually exclusive.

identity string

Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.

Note: The Resource ID must be of a User Assigned Managed identity defined in an identity block.

passwordSecretName string
The name of the Secret Reference containing the password value for this user on the Container Registry, username must also be supplied.
username string
The username to use for this Container Registry, password_secret_name must also be supplied..
server This property is required. str

The hostname for the Container Registry.

The authentication details must also be supplied, identity and username/password_secret_name are mutually exclusive.

identity str

Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.

Note: The Resource ID must be of a User Assigned Managed identity defined in an identity block.

password_secret_name str
The name of the Secret Reference containing the password value for this user on the Container Registry, username must also be supplied.
username str
The username to use for this Container Registry, password_secret_name must also be supplied..
server This property is required. String

The hostname for the Container Registry.

The authentication details must also be supplied, identity and username/password_secret_name are mutually exclusive.

identity String

Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.

Note: The Resource ID must be of a User Assigned Managed identity defined in an identity block.

passwordSecretName String
The name of the Secret Reference containing the password value for this user on the Container Registry, username must also be supplied.
username String
The username to use for this Container Registry, password_secret_name must also be supplied..

AppSecret
, AppSecretArgs

Name This property is required. string
The secret name.
Identity string

The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or System for the System Assigned Identity.

!> Note: identity must be used together with key_vault_secret_id

KeyVaultSecretId string

The ID of a Key Vault secret. This can be a versioned or version-less ID.

!> Note: When using key_vault_secret_id, ignore_changes should be used to ignore any changes to value.

Value string

The value for this secret.

!> Note: value will be ignored if key_vault_secret_id and identity are provided.

Name This property is required. string
The secret name.
Identity string

The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or System for the System Assigned Identity.

!> Note: identity must be used together with key_vault_secret_id

KeyVaultSecretId string

The ID of a Key Vault secret. This can be a versioned or version-less ID.

!> Note: When using key_vault_secret_id, ignore_changes should be used to ignore any changes to value.

Value string

The value for this secret.

!> Note: value will be ignored if key_vault_secret_id and identity are provided.

name This property is required. String
The secret name.
identity String

The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or System for the System Assigned Identity.

!> Note: identity must be used together with key_vault_secret_id

keyVaultSecretId String

The ID of a Key Vault secret. This can be a versioned or version-less ID.

!> Note: When using key_vault_secret_id, ignore_changes should be used to ignore any changes to value.

value String

The value for this secret.

!> Note: value will be ignored if key_vault_secret_id and identity are provided.

name This property is required. string
The secret name.
identity string

The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or System for the System Assigned Identity.

!> Note: identity must be used together with key_vault_secret_id

keyVaultSecretId string

The ID of a Key Vault secret. This can be a versioned or version-less ID.

!> Note: When using key_vault_secret_id, ignore_changes should be used to ignore any changes to value.

value string

The value for this secret.

!> Note: value will be ignored if key_vault_secret_id and identity are provided.

name This property is required. str
The secret name.
identity str

The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or System for the System Assigned Identity.

!> Note: identity must be used together with key_vault_secret_id

key_vault_secret_id str

The ID of a Key Vault secret. This can be a versioned or version-less ID.

!> Note: When using key_vault_secret_id, ignore_changes should be used to ignore any changes to value.

value str

The value for this secret.

!> Note: value will be ignored if key_vault_secret_id and identity are provided.

name This property is required. String
The secret name.
identity String

The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or System for the System Assigned Identity.

!> Note: identity must be used together with key_vault_secret_id

keyVaultSecretId String

The ID of a Key Vault secret. This can be a versioned or version-less ID.

!> Note: When using key_vault_secret_id, ignore_changes should be used to ignore any changes to value.

value String

The value for this secret.

!> Note: value will be ignored if key_vault_secret_id and identity are provided.

AppTemplate
, AppTemplateArgs

Containers This property is required. List<AppTemplateContainer>
One or more container blocks as detailed below.
AzureQueueScaleRules List<AppTemplateAzureQueueScaleRule>
One or more azure_queue_scale_rule blocks as defined below.
CustomScaleRules List<AppTemplateCustomScaleRule>
One or more custom_scale_rule blocks as defined below.
HttpScaleRules List<AppTemplateHttpScaleRule>
One or more http_scale_rule blocks as defined below.
InitContainers List<AppTemplateInitContainer>
The definition of an init container that is part of the group as documented in the init_container block below.
MaxReplicas int
The maximum number of replicas for this container.
MinReplicas int
The minimum number of replicas for this container.
RevisionSuffix string
The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
TcpScaleRules List<AppTemplateTcpScaleRule>
One or more tcp_scale_rule blocks as defined below.
TerminationGracePeriodSeconds int
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
Volumes List<AppTemplateVolume>
A volume block as detailed below.
Containers This property is required. []AppTemplateContainer
One or more container blocks as detailed below.
AzureQueueScaleRules []AppTemplateAzureQueueScaleRule
One or more azure_queue_scale_rule blocks as defined below.
CustomScaleRules []AppTemplateCustomScaleRule
One or more custom_scale_rule blocks as defined below.
HttpScaleRules []AppTemplateHttpScaleRule
One or more http_scale_rule blocks as defined below.
InitContainers []AppTemplateInitContainer
The definition of an init container that is part of the group as documented in the init_container block below.
MaxReplicas int
The maximum number of replicas for this container.
MinReplicas int
The minimum number of replicas for this container.
RevisionSuffix string
The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
TcpScaleRules []AppTemplateTcpScaleRule
One or more tcp_scale_rule blocks as defined below.
TerminationGracePeriodSeconds int
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
Volumes []AppTemplateVolume
A volume block as detailed below.
containers This property is required. List<AppTemplateContainer>
One or more container blocks as detailed below.
azureQueueScaleRules List<AppTemplateAzureQueueScaleRule>
One or more azure_queue_scale_rule blocks as defined below.
customScaleRules List<AppTemplateCustomScaleRule>
One or more custom_scale_rule blocks as defined below.
httpScaleRules List<AppTemplateHttpScaleRule>
One or more http_scale_rule blocks as defined below.
initContainers List<AppTemplateInitContainer>
The definition of an init container that is part of the group as documented in the init_container block below.
maxReplicas Integer
The maximum number of replicas for this container.
minReplicas Integer
The minimum number of replicas for this container.
revisionSuffix String
The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
tcpScaleRules List<AppTemplateTcpScaleRule>
One or more tcp_scale_rule blocks as defined below.
terminationGracePeriodSeconds Integer
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
volumes List<AppTemplateVolume>
A volume block as detailed below.
containers This property is required. AppTemplateContainer[]
One or more container blocks as detailed below.
azureQueueScaleRules AppTemplateAzureQueueScaleRule[]
One or more azure_queue_scale_rule blocks as defined below.
customScaleRules AppTemplateCustomScaleRule[]
One or more custom_scale_rule blocks as defined below.
httpScaleRules AppTemplateHttpScaleRule[]
One or more http_scale_rule blocks as defined below.
initContainers AppTemplateInitContainer[]
The definition of an init container that is part of the group as documented in the init_container block below.
maxReplicas number
The maximum number of replicas for this container.
minReplicas number
The minimum number of replicas for this container.
revisionSuffix string
The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
tcpScaleRules AppTemplateTcpScaleRule[]
One or more tcp_scale_rule blocks as defined below.
terminationGracePeriodSeconds number
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
volumes AppTemplateVolume[]
A volume block as detailed below.
containers This property is required. Sequence[AppTemplateContainer]
One or more container blocks as detailed below.
azure_queue_scale_rules Sequence[AppTemplateAzureQueueScaleRule]
One or more azure_queue_scale_rule blocks as defined below.
custom_scale_rules Sequence[AppTemplateCustomScaleRule]
One or more custom_scale_rule blocks as defined below.
http_scale_rules Sequence[AppTemplateHttpScaleRule]
One or more http_scale_rule blocks as defined below.
init_containers Sequence[AppTemplateInitContainer]
The definition of an init container that is part of the group as documented in the init_container block below.
max_replicas int
The maximum number of replicas for this container.
min_replicas int
The minimum number of replicas for this container.
revision_suffix str
The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
tcp_scale_rules Sequence[AppTemplateTcpScaleRule]
One or more tcp_scale_rule blocks as defined below.
termination_grace_period_seconds int
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
volumes Sequence[AppTemplateVolume]
A volume block as detailed below.
containers This property is required. List<Property Map>
One or more container blocks as detailed below.
azureQueueScaleRules List<Property Map>
One or more azure_queue_scale_rule blocks as defined below.
customScaleRules List<Property Map>
One or more custom_scale_rule blocks as defined below.
httpScaleRules List<Property Map>
One or more http_scale_rule blocks as defined below.
initContainers List<Property Map>
The definition of an init container that is part of the group as documented in the init_container block below.
maxReplicas Number
The maximum number of replicas for this container.
minReplicas Number
The minimum number of replicas for this container.
revisionSuffix String
The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.
tcpScaleRules List<Property Map>
One or more tcp_scale_rule blocks as defined below.
terminationGracePeriodSeconds Number
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
volumes List<Property Map>
A volume block as detailed below.

AppTemplateAzureQueueScaleRule
, AppTemplateAzureQueueScaleRuleArgs

Authentications This property is required. List<AppTemplateAzureQueueScaleRuleAuthentication>
One or more authentication blocks as defined below.
Name This property is required. string
The name of the Scaling Rule
QueueLength This property is required. int
The value of the length of the queue to trigger scaling actions.
QueueName This property is required. string
The name of the Azure Queue
Authentications This property is required. []AppTemplateAzureQueueScaleRuleAuthentication
One or more authentication blocks as defined below.
Name This property is required. string
The name of the Scaling Rule
QueueLength This property is required. int
The value of the length of the queue to trigger scaling actions.
QueueName This property is required. string
The name of the Azure Queue
authentications This property is required. List<AppTemplateAzureQueueScaleRuleAuthentication>
One or more authentication blocks as defined below.
name This property is required. String
The name of the Scaling Rule
queueLength This property is required. Integer
The value of the length of the queue to trigger scaling actions.
queueName This property is required. String
The name of the Azure Queue
authentications This property is required. AppTemplateAzureQueueScaleRuleAuthentication[]
One or more authentication blocks as defined below.
name This property is required. string
The name of the Scaling Rule
queueLength This property is required. number
The value of the length of the queue to trigger scaling actions.
queueName This property is required. string
The name of the Azure Queue
authentications This property is required. Sequence[AppTemplateAzureQueueScaleRuleAuthentication]
One or more authentication blocks as defined below.
name This property is required. str
The name of the Scaling Rule
queue_length This property is required. int
The value of the length of the queue to trigger scaling actions.
queue_name This property is required. str
The name of the Azure Queue
authentications This property is required. List<Property Map>
One or more authentication blocks as defined below.
name This property is required. String
The name of the Scaling Rule
queueLength This property is required. Number
The value of the length of the queue to trigger scaling actions.
queueName This property is required. String
The name of the Azure Queue

AppTemplateAzureQueueScaleRuleAuthentication
, AppTemplateAzureQueueScaleRuleAuthenticationArgs

SecretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
TriggerParameter This property is required. string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
SecretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
TriggerParameter This property is required. string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. String
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter This property is required. String
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter This property is required. string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secret_name This property is required. str
The name of the Container App Secret to use for this Scale Rule Authentication.
trigger_parameter This property is required. str
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. String
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter This property is required. String
The Trigger Parameter name to use the supply the value retrieved from the secret_name.

AppTemplateContainer
, AppTemplateContainerArgs

Cpu This property is required. double

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

Image This property is required. string
The image to use to create the container.
Memory This property is required. string

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

Name This property is required. string
The name of the container
Args List<string>
A list of extra arguments to pass to the container.
Commands List<string>
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
Envs List<AppTemplateContainerEnv>
One or more env blocks as detailed below.
EphemeralStorage string

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

LivenessProbes List<AppTemplateContainerLivenessProbe>
A liveness_probe block as detailed below.
ReadinessProbes List<AppTemplateContainerReadinessProbe>
A readiness_probe block as detailed below.
StartupProbes List<AppTemplateContainerStartupProbe>
A startup_probe block as detailed below.
VolumeMounts List<AppTemplateContainerVolumeMount>
A volume_mounts block as detailed below.
Cpu This property is required. float64

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

Image This property is required. string
The image to use to create the container.
Memory This property is required. string

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

Name This property is required. string
The name of the container
Args []string
A list of extra arguments to pass to the container.
Commands []string
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
Envs []AppTemplateContainerEnv
One or more env blocks as detailed below.
EphemeralStorage string

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

LivenessProbes []AppTemplateContainerLivenessProbe
A liveness_probe block as detailed below.
ReadinessProbes []AppTemplateContainerReadinessProbe
A readiness_probe block as detailed below.
StartupProbes []AppTemplateContainerStartupProbe
A startup_probe block as detailed below.
VolumeMounts []AppTemplateContainerVolumeMount
A volume_mounts block as detailed below.
cpu This property is required. Double

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

image This property is required. String
The image to use to create the container.
memory This property is required. String

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

name This property is required. String
The name of the container
args List<String>
A list of extra arguments to pass to the container.
commands List<String>
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
envs List<AppTemplateContainerEnv>
One or more env blocks as detailed below.
ephemeralStorage String

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

livenessProbes List<AppTemplateContainerLivenessProbe>
A liveness_probe block as detailed below.
readinessProbes List<AppTemplateContainerReadinessProbe>
A readiness_probe block as detailed below.
startupProbes List<AppTemplateContainerStartupProbe>
A startup_probe block as detailed below.
volumeMounts List<AppTemplateContainerVolumeMount>
A volume_mounts block as detailed below.
cpu This property is required. number

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

image This property is required. string
The image to use to create the container.
memory This property is required. string

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

name This property is required. string
The name of the container
args string[]
A list of extra arguments to pass to the container.
commands string[]
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
envs AppTemplateContainerEnv[]
One or more env blocks as detailed below.
ephemeralStorage string

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

livenessProbes AppTemplateContainerLivenessProbe[]
A liveness_probe block as detailed below.
readinessProbes AppTemplateContainerReadinessProbe[]
A readiness_probe block as detailed below.
startupProbes AppTemplateContainerStartupProbe[]
A startup_probe block as detailed below.
volumeMounts AppTemplateContainerVolumeMount[]
A volume_mounts block as detailed below.
cpu This property is required. float

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

image This property is required. str
The image to use to create the container.
memory This property is required. str

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

name This property is required. str
The name of the container
args Sequence[str]
A list of extra arguments to pass to the container.
commands Sequence[str]
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
envs Sequence[AppTemplateContainerEnv]
One or more env blocks as detailed below.
ephemeral_storage str

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

liveness_probes Sequence[AppTemplateContainerLivenessProbe]
A liveness_probe block as detailed below.
readiness_probes Sequence[AppTemplateContainerReadinessProbe]
A readiness_probe block as detailed below.
startup_probes Sequence[AppTemplateContainerStartupProbe]
A startup_probe block as detailed below.
volume_mounts Sequence[AppTemplateContainerVolumeMount]
A volume_mounts block as detailed below.
cpu This property is required. Number

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

image This property is required. String
The image to use to create the container.
memory This property is required. String

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

name This property is required. String
The name of the container
args List<String>
A list of extra arguments to pass to the container.
commands List<String>
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
envs List<Property Map>
One or more env blocks as detailed below.
ephemeralStorage String

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

livenessProbes List<Property Map>
A liveness_probe block as detailed below.
readinessProbes List<Property Map>
A readiness_probe block as detailed below.
startupProbes List<Property Map>
A startup_probe block as detailed below.
volumeMounts List<Property Map>
A volume_mounts block as detailed below.

AppTemplateContainerEnv
, AppTemplateContainerEnvArgs

Name This property is required. string
The name of the environment variable for the container.
SecretName string
The name of the secret that contains the value for this environment variable.
Value string

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

Name This property is required. string
The name of the environment variable for the container.
SecretName string
The name of the secret that contains the value for this environment variable.
Value string

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

name This property is required. String
The name of the environment variable for the container.
secretName String
The name of the secret that contains the value for this environment variable.
value String

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

name This property is required. string
The name of the environment variable for the container.
secretName string
The name of the secret that contains the value for this environment variable.
value string

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

name This property is required. str
The name of the environment variable for the container.
secret_name str
The name of the secret that contains the value for this environment variable.
value str

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

name This property is required. String
The name of the environment variable for the container.
secretName String
The name of the secret that contains the value for this environment variable.
value String

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

AppTemplateContainerLivenessProbe
, AppTemplateContainerLivenessProbeArgs

Port This property is required. int
The port number on which to connect. Possible values are between 1 and 65535.
Transport This property is required. string
Type of probe. Possible values are TCP, HTTP, and HTTPS.
FailureCountThreshold int
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 10. Defaults to 3.
Headers List<AppTemplateContainerLivenessProbeHeader>
A header block as detailed below.
Host string
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
InitialDelay int
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 1 seconds.
IntervalSeconds int
How often, in seconds, the probe should run. Possible values are in the range 1 - 240. Defaults to 10.
Path string
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
TerminationGracePeriodSeconds int
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
Timeout int
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
Port This property is required. int
The port number on which to connect. Possible values are between 1 and 65535.
Transport This property is required. string
Type of probe. Possible values are TCP, HTTP, and HTTPS.
FailureCountThreshold int
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 10. Defaults to 3.
Headers []AppTemplateContainerLivenessProbeHeader
A header block as detailed below.
Host string
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
InitialDelay int
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 1 seconds.
IntervalSeconds int
How often, in seconds, the probe should run. Possible values are in the range 1 - 240. Defaults to 10.
Path string
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
TerminationGracePeriodSeconds int
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
Timeout int
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. Integer
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. String
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failureCountThreshold Integer
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 10. Defaults to 3.
headers List<AppTemplateContainerLivenessProbeHeader>
A header block as detailed below.
host String
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initialDelay Integer
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 1 seconds.
intervalSeconds Integer
How often, in seconds, the probe should run. Possible values are in the range 1 - 240. Defaults to 10.
path String
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
terminationGracePeriodSeconds Integer
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
timeout Integer
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. number
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. string
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failureCountThreshold number
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 10. Defaults to 3.
headers AppTemplateContainerLivenessProbeHeader[]
A header block as detailed below.
host string
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initialDelay number
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 1 seconds.
intervalSeconds number
How often, in seconds, the probe should run. Possible values are in the range 1 - 240. Defaults to 10.
path string
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
terminationGracePeriodSeconds number
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
timeout number
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. int
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. str
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failure_count_threshold int
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 10. Defaults to 3.
headers Sequence[AppTemplateContainerLivenessProbeHeader]
A header block as detailed below.
host str
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initial_delay int
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 1 seconds.
interval_seconds int
How often, in seconds, the probe should run. Possible values are in the range 1 - 240. Defaults to 10.
path str
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
termination_grace_period_seconds int
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
timeout int
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. Number
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. String
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failureCountThreshold Number
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 10. Defaults to 3.
headers List<Property Map>
A header block as detailed below.
host String
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initialDelay Number
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 1 seconds.
intervalSeconds Number
How often, in seconds, the probe should run. Possible values are in the range 1 - 240. Defaults to 10.
path String
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
terminationGracePeriodSeconds Number
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
timeout Number
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.

AppTemplateContainerLivenessProbeHeader
, AppTemplateContainerLivenessProbeHeaderArgs

Name This property is required. string
The HTTP Header Name.
Value This property is required. string
The HTTP Header value.
Name This property is required. string
The HTTP Header Name.
Value This property is required. string
The HTTP Header value.
name This property is required. String
The HTTP Header Name.
value This property is required. String
The HTTP Header value.
name This property is required. string
The HTTP Header Name.
value This property is required. string
The HTTP Header value.
name This property is required. str
The HTTP Header Name.
value This property is required. str
The HTTP Header value.
name This property is required. String
The HTTP Header Name.
value This property is required. String
The HTTP Header value.

AppTemplateContainerReadinessProbe
, AppTemplateContainerReadinessProbeArgs

Port This property is required. int
The port number on which to connect. Possible values are between 1 and 65535.
Transport This property is required. string
Type of probe. Possible values are TCP, HTTP, and HTTPS.
FailureCountThreshold int
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
Headers List<AppTemplateContainerReadinessProbeHeader>
A header block as detailed below.
Host string
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
InitialDelay int
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
IntervalSeconds int
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
Path string
The URI to use for http type probes. Not valid for TCP type probes. Defaults to /.
SuccessCountThreshold int
The number of consecutive successful responses required to consider this probe as successful. Possible values are between 1 and 10. Defaults to 3.
Timeout int
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
Port This property is required. int
The port number on which to connect. Possible values are between 1 and 65535.
Transport This property is required. string
Type of probe. Possible values are TCP, HTTP, and HTTPS.
FailureCountThreshold int
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
Headers []AppTemplateContainerReadinessProbeHeader
A header block as detailed below.
Host string
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
InitialDelay int
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
IntervalSeconds int
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
Path string
The URI to use for http type probes. Not valid for TCP type probes. Defaults to /.
SuccessCountThreshold int
The number of consecutive successful responses required to consider this probe as successful. Possible values are between 1 and 10. Defaults to 3.
Timeout int
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. Integer
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. String
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failureCountThreshold Integer
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
headers List<AppTemplateContainerReadinessProbeHeader>
A header block as detailed below.
host String
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initialDelay Integer
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
intervalSeconds Integer
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
path String
The URI to use for http type probes. Not valid for TCP type probes. Defaults to /.
successCountThreshold Integer
The number of consecutive successful responses required to consider this probe as successful. Possible values are between 1 and 10. Defaults to 3.
timeout Integer
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. number
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. string
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failureCountThreshold number
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
headers AppTemplateContainerReadinessProbeHeader[]
A header block as detailed below.
host string
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initialDelay number
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
intervalSeconds number
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
path string
The URI to use for http type probes. Not valid for TCP type probes. Defaults to /.
successCountThreshold number
The number of consecutive successful responses required to consider this probe as successful. Possible values are between 1 and 10. Defaults to 3.
timeout number
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. int
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. str
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failure_count_threshold int
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
headers Sequence[AppTemplateContainerReadinessProbeHeader]
A header block as detailed below.
host str
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initial_delay int
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
interval_seconds int
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
path str
The URI to use for http type probes. Not valid for TCP type probes. Defaults to /.
success_count_threshold int
The number of consecutive successful responses required to consider this probe as successful. Possible values are between 1 and 10. Defaults to 3.
timeout int
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. Number
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. String
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failureCountThreshold Number
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
headers List<Property Map>
A header block as detailed below.
host String
The probe hostname. Defaults to the pod IP address. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initialDelay Number
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
intervalSeconds Number
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
path String
The URI to use for http type probes. Not valid for TCP type probes. Defaults to /.
successCountThreshold Number
The number of consecutive successful responses required to consider this probe as successful. Possible values are between 1 and 10. Defaults to 3.
timeout Number
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.

AppTemplateContainerReadinessProbeHeader
, AppTemplateContainerReadinessProbeHeaderArgs

Name This property is required. string
The HTTP Header Name.
Value This property is required. string
The HTTP Header value.
Name This property is required. string
The HTTP Header Name.
Value This property is required. string
The HTTP Header value.
name This property is required. String
The HTTP Header Name.
value This property is required. String
The HTTP Header value.
name This property is required. string
The HTTP Header Name.
value This property is required. string
The HTTP Header value.
name This property is required. str
The HTTP Header Name.
value This property is required. str
The HTTP Header value.
name This property is required. String
The HTTP Header Name.
value This property is required. String
The HTTP Header value.

AppTemplateContainerStartupProbe
, AppTemplateContainerStartupProbeArgs

Port This property is required. int
The port number on which to connect. Possible values are between 1 and 65535.
Transport This property is required. string
Type of probe. Possible values are TCP, HTTP, and HTTPS.
FailureCountThreshold int
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
Headers List<AppTemplateContainerStartupProbeHeader>
A header block as detailed below.
Host string
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
InitialDelay int
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
IntervalSeconds int
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
Path string
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
TerminationGracePeriodSeconds int
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
Timeout int
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
Port This property is required. int
The port number on which to connect. Possible values are between 1 and 65535.
Transport This property is required. string
Type of probe. Possible values are TCP, HTTP, and HTTPS.
FailureCountThreshold int
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
Headers []AppTemplateContainerStartupProbeHeader
A header block as detailed below.
Host string
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
InitialDelay int
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
IntervalSeconds int
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
Path string
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
TerminationGracePeriodSeconds int
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
Timeout int
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. Integer
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. String
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failureCountThreshold Integer
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
headers List<AppTemplateContainerStartupProbeHeader>
A header block as detailed below.
host String
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initialDelay Integer
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
intervalSeconds Integer
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
path String
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
terminationGracePeriodSeconds Integer
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
timeout Integer
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. number
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. string
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failureCountThreshold number
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
headers AppTemplateContainerStartupProbeHeader[]
A header block as detailed below.
host string
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initialDelay number
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
intervalSeconds number
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
path string
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
terminationGracePeriodSeconds number
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
timeout number
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. int
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. str
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failure_count_threshold int
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
headers Sequence[AppTemplateContainerStartupProbeHeader]
A header block as detailed below.
host str
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initial_delay int
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
interval_seconds int
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
path str
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
termination_grace_period_seconds int
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
timeout int
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.
port This property is required. Number
The port number on which to connect. Possible values are between 1 and 65535.
transport This property is required. String
Type of probe. Possible values are TCP, HTTP, and HTTPS.
failureCountThreshold Number
The number of consecutive failures required to consider this probe as failed. Possible values are between 1 and 30. Defaults to 3.
headers List<Property Map>
A header block as detailed below.
host String
The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for Host in headers can be used to override this for HTTP and HTTPS type probes.
initialDelay Number
The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between 0 and 60. Defaults to 0 seconds.
intervalSeconds Number
How often, in seconds, the probe should run. Possible values are between 1 and 240. Defaults to 10
path String
The URI to use with the host for http type probes. Not valid for TCP type probes. Defaults to /.
terminationGracePeriodSeconds Number
The time in seconds after the container is sent the termination signal before the process if forcibly killed.
timeout Number
Time in seconds after which the probe times out. Possible values are in the range 1 - 240. Defaults to 1.

AppTemplateContainerStartupProbeHeader
, AppTemplateContainerStartupProbeHeaderArgs

Name This property is required. string
The HTTP Header Name.
Value This property is required. string
The HTTP Header value.
Name This property is required. string
The HTTP Header Name.
Value This property is required. string
The HTTP Header value.
name This property is required. String
The HTTP Header Name.
value This property is required. String
The HTTP Header value.
name This property is required. string
The HTTP Header Name.
value This property is required. string
The HTTP Header value.
name This property is required. str
The HTTP Header Name.
value This property is required. str
The HTTP Header value.
name This property is required. String
The HTTP Header Name.
value This property is required. String
The HTTP Header value.

AppTemplateContainerVolumeMount
, AppTemplateContainerVolumeMountArgs

Name This property is required. string
The name of the Volume to be mounted in the container.
Path This property is required. string
The path in the container at which to mount this volume.
SubPath string
The sub path of the volume to be mounted in the container.
Name This property is required. string
The name of the Volume to be mounted in the container.
Path This property is required. string
The path in the container at which to mount this volume.
SubPath string
The sub path of the volume to be mounted in the container.
name This property is required. String
The name of the Volume to be mounted in the container.
path This property is required. String
The path in the container at which to mount this volume.
subPath String
The sub path of the volume to be mounted in the container.
name This property is required. string
The name of the Volume to be mounted in the container.
path This property is required. string
The path in the container at which to mount this volume.
subPath string
The sub path of the volume to be mounted in the container.
name This property is required. str
The name of the Volume to be mounted in the container.
path This property is required. str
The path in the container at which to mount this volume.
sub_path str
The sub path of the volume to be mounted in the container.
name This property is required. String
The name of the Volume to be mounted in the container.
path This property is required. String
The path in the container at which to mount this volume.
subPath String
The sub path of the volume to be mounted in the container.

AppTemplateCustomScaleRule
, AppTemplateCustomScaleRuleArgs

CustomRuleType This property is required. string
The Custom rule type. Possible values include: activemq, artemis-queue, kafka, pulsar, aws-cloudwatch, aws-dynamodb, aws-dynamodb-streams, aws-kinesis-stream, aws-sqs-queue, azure-app-insights, azure-blob, azure-data-explorer, azure-eventhub, azure-log-analytics, azure-monitor, azure-pipelines, azure-servicebus, azure-queue, cassandra, cpu, cron, datadog, elasticsearch, external, external-push, gcp-stackdriver, gcp-storage, gcp-pubsub, graphite, http, huawei-cloudeye, ibmmq, influxdb, kubernetes-workload, liiklus, memory, metrics-api, mongodb, mssql, mysql, nats-jetstream, stan, tcp, new-relic, openstack-metric, openstack-swift, postgresql, predictkube, prometheus, rabbitmq, redis, redis-cluster, redis-sentinel, redis-streams, redis-cluster-streams, redis-sentinel-streams, selenium-grid,solace-event-queue, and github-runner.
Metadata This property is required. Dictionary<string, string>
A map of string key-value pairs to configure the Custom Scale Rule.
Name This property is required. string
The name of the Scaling Rule
Authentications List<AppTemplateCustomScaleRuleAuthentication>
Zero or more authentication blocks as defined below.
CustomRuleType This property is required. string
The Custom rule type. Possible values include: activemq, artemis-queue, kafka, pulsar, aws-cloudwatch, aws-dynamodb, aws-dynamodb-streams, aws-kinesis-stream, aws-sqs-queue, azure-app-insights, azure-blob, azure-data-explorer, azure-eventhub, azure-log-analytics, azure-monitor, azure-pipelines, azure-servicebus, azure-queue, cassandra, cpu, cron, datadog, elasticsearch, external, external-push, gcp-stackdriver, gcp-storage, gcp-pubsub, graphite, http, huawei-cloudeye, ibmmq, influxdb, kubernetes-workload, liiklus, memory, metrics-api, mongodb, mssql, mysql, nats-jetstream, stan, tcp, new-relic, openstack-metric, openstack-swift, postgresql, predictkube, prometheus, rabbitmq, redis, redis-cluster, redis-sentinel, redis-streams, redis-cluster-streams, redis-sentinel-streams, selenium-grid,solace-event-queue, and github-runner.
Metadata This property is required. map[string]string
A map of string key-value pairs to configure the Custom Scale Rule.
Name This property is required. string
The name of the Scaling Rule
Authentications []AppTemplateCustomScaleRuleAuthentication
Zero or more authentication blocks as defined below.
customRuleType This property is required. String
The Custom rule type. Possible values include: activemq, artemis-queue, kafka, pulsar, aws-cloudwatch, aws-dynamodb, aws-dynamodb-streams, aws-kinesis-stream, aws-sqs-queue, azure-app-insights, azure-blob, azure-data-explorer, azure-eventhub, azure-log-analytics, azure-monitor, azure-pipelines, azure-servicebus, azure-queue, cassandra, cpu, cron, datadog, elasticsearch, external, external-push, gcp-stackdriver, gcp-storage, gcp-pubsub, graphite, http, huawei-cloudeye, ibmmq, influxdb, kubernetes-workload, liiklus, memory, metrics-api, mongodb, mssql, mysql, nats-jetstream, stan, tcp, new-relic, openstack-metric, openstack-swift, postgresql, predictkube, prometheus, rabbitmq, redis, redis-cluster, redis-sentinel, redis-streams, redis-cluster-streams, redis-sentinel-streams, selenium-grid,solace-event-queue, and github-runner.
metadata This property is required. Map<String,String>
A map of string key-value pairs to configure the Custom Scale Rule.
name This property is required. String
The name of the Scaling Rule
authentications List<AppTemplateCustomScaleRuleAuthentication>
Zero or more authentication blocks as defined below.
customRuleType This property is required. string
The Custom rule type. Possible values include: activemq, artemis-queue, kafka, pulsar, aws-cloudwatch, aws-dynamodb, aws-dynamodb-streams, aws-kinesis-stream, aws-sqs-queue, azure-app-insights, azure-blob, azure-data-explorer, azure-eventhub, azure-log-analytics, azure-monitor, azure-pipelines, azure-servicebus, azure-queue, cassandra, cpu, cron, datadog, elasticsearch, external, external-push, gcp-stackdriver, gcp-storage, gcp-pubsub, graphite, http, huawei-cloudeye, ibmmq, influxdb, kubernetes-workload, liiklus, memory, metrics-api, mongodb, mssql, mysql, nats-jetstream, stan, tcp, new-relic, openstack-metric, openstack-swift, postgresql, predictkube, prometheus, rabbitmq, redis, redis-cluster, redis-sentinel, redis-streams, redis-cluster-streams, redis-sentinel-streams, selenium-grid,solace-event-queue, and github-runner.
metadata This property is required. {[key: string]: string}
A map of string key-value pairs to configure the Custom Scale Rule.
name This property is required. string
The name of the Scaling Rule
authentications AppTemplateCustomScaleRuleAuthentication[]
Zero or more authentication blocks as defined below.
custom_rule_type This property is required. str
The Custom rule type. Possible values include: activemq, artemis-queue, kafka, pulsar, aws-cloudwatch, aws-dynamodb, aws-dynamodb-streams, aws-kinesis-stream, aws-sqs-queue, azure-app-insights, azure-blob, azure-data-explorer, azure-eventhub, azure-log-analytics, azure-monitor, azure-pipelines, azure-servicebus, azure-queue, cassandra, cpu, cron, datadog, elasticsearch, external, external-push, gcp-stackdriver, gcp-storage, gcp-pubsub, graphite, http, huawei-cloudeye, ibmmq, influxdb, kubernetes-workload, liiklus, memory, metrics-api, mongodb, mssql, mysql, nats-jetstream, stan, tcp, new-relic, openstack-metric, openstack-swift, postgresql, predictkube, prometheus, rabbitmq, redis, redis-cluster, redis-sentinel, redis-streams, redis-cluster-streams, redis-sentinel-streams, selenium-grid,solace-event-queue, and github-runner.
metadata This property is required. Mapping[str, str]
A map of string key-value pairs to configure the Custom Scale Rule.
name This property is required. str
The name of the Scaling Rule
authentications Sequence[AppTemplateCustomScaleRuleAuthentication]
Zero or more authentication blocks as defined below.
customRuleType This property is required. String
The Custom rule type. Possible values include: activemq, artemis-queue, kafka, pulsar, aws-cloudwatch, aws-dynamodb, aws-dynamodb-streams, aws-kinesis-stream, aws-sqs-queue, azure-app-insights, azure-blob, azure-data-explorer, azure-eventhub, azure-log-analytics, azure-monitor, azure-pipelines, azure-servicebus, azure-queue, cassandra, cpu, cron, datadog, elasticsearch, external, external-push, gcp-stackdriver, gcp-storage, gcp-pubsub, graphite, http, huawei-cloudeye, ibmmq, influxdb, kubernetes-workload, liiklus, memory, metrics-api, mongodb, mssql, mysql, nats-jetstream, stan, tcp, new-relic, openstack-metric, openstack-swift, postgresql, predictkube, prometheus, rabbitmq, redis, redis-cluster, redis-sentinel, redis-streams, redis-cluster-streams, redis-sentinel-streams, selenium-grid,solace-event-queue, and github-runner.
metadata This property is required. Map<String>
A map of string key-value pairs to configure the Custom Scale Rule.
name This property is required. String
The name of the Scaling Rule
authentications List<Property Map>
Zero or more authentication blocks as defined below.

AppTemplateCustomScaleRuleAuthentication
, AppTemplateCustomScaleRuleAuthenticationArgs

SecretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
TriggerParameter This property is required. string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
SecretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
TriggerParameter This property is required. string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. String
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter This property is required. String
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter This property is required. string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secret_name This property is required. str
The name of the Container App Secret to use for this Scale Rule Authentication.
trigger_parameter This property is required. str
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. String
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter This property is required. String
The Trigger Parameter name to use the supply the value retrieved from the secret_name.

AppTemplateHttpScaleRule
, AppTemplateHttpScaleRuleArgs

ConcurrentRequests This property is required. string
The number of concurrent requests to trigger scaling.
Name This property is required. string
The name of the Scaling Rule
Authentications List<AppTemplateHttpScaleRuleAuthentication>
Zero or more authentication blocks as defined below.
ConcurrentRequests This property is required. string
The number of concurrent requests to trigger scaling.
Name This property is required. string
The name of the Scaling Rule
Authentications []AppTemplateHttpScaleRuleAuthentication
Zero or more authentication blocks as defined below.
concurrentRequests This property is required. String
The number of concurrent requests to trigger scaling.
name This property is required. String
The name of the Scaling Rule
authentications List<AppTemplateHttpScaleRuleAuthentication>
Zero or more authentication blocks as defined below.
concurrentRequests This property is required. string
The number of concurrent requests to trigger scaling.
name This property is required. string
The name of the Scaling Rule
authentications AppTemplateHttpScaleRuleAuthentication[]
Zero or more authentication blocks as defined below.
concurrent_requests This property is required. str
The number of concurrent requests to trigger scaling.
name This property is required. str
The name of the Scaling Rule
authentications Sequence[AppTemplateHttpScaleRuleAuthentication]
Zero or more authentication blocks as defined below.
concurrentRequests This property is required. String
The number of concurrent requests to trigger scaling.
name This property is required. String
The name of the Scaling Rule
authentications List<Property Map>
Zero or more authentication blocks as defined below.

AppTemplateHttpScaleRuleAuthentication
, AppTemplateHttpScaleRuleAuthenticationArgs

SecretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
TriggerParameter string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
SecretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
TriggerParameter string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. String
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter String
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secret_name This property is required. str
The name of the Container App Secret to use for this Scale Rule Authentication.
trigger_parameter str
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. String
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter String
The Trigger Parameter name to use the supply the value retrieved from the secret_name.

AppTemplateInitContainer
, AppTemplateInitContainerArgs

Image This property is required. string
The image to use to create the container.
Name This property is required. string
The name of the container
Args List<string>
A list of extra arguments to pass to the container.
Commands List<string>
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
Cpu double

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

Envs List<AppTemplateInitContainerEnv>
One or more env blocks as detailed below.
EphemeralStorage string

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

Memory string

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

VolumeMounts List<AppTemplateInitContainerVolumeMount>
A volume_mounts block as detailed below.
Image This property is required. string
The image to use to create the container.
Name This property is required. string
The name of the container
Args []string
A list of extra arguments to pass to the container.
Commands []string
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
Cpu float64

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

Envs []AppTemplateInitContainerEnv
One or more env blocks as detailed below.
EphemeralStorage string

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

Memory string

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

VolumeMounts []AppTemplateInitContainerVolumeMount
A volume_mounts block as detailed below.
image This property is required. String
The image to use to create the container.
name This property is required. String
The name of the container
args List<String>
A list of extra arguments to pass to the container.
commands List<String>
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
cpu Double

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

envs List<AppTemplateInitContainerEnv>
One or more env blocks as detailed below.
ephemeralStorage String

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

memory String

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

volumeMounts List<AppTemplateInitContainerVolumeMount>
A volume_mounts block as detailed below.
image This property is required. string
The image to use to create the container.
name This property is required. string
The name of the container
args string[]
A list of extra arguments to pass to the container.
commands string[]
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
cpu number

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

envs AppTemplateInitContainerEnv[]
One or more env blocks as detailed below.
ephemeralStorage string

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

memory string

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

volumeMounts AppTemplateInitContainerVolumeMount[]
A volume_mounts block as detailed below.
image This property is required. str
The image to use to create the container.
name This property is required. str
The name of the container
args Sequence[str]
A list of extra arguments to pass to the container.
commands Sequence[str]
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
cpu float

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

envs Sequence[AppTemplateInitContainerEnv]
One or more env blocks as detailed below.
ephemeral_storage str

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

memory str

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

volume_mounts Sequence[AppTemplateInitContainerVolumeMount]
A volume_mounts block as detailed below.
image This property is required. String
The image to use to create the container.
name This property is required. String
The name of the container
args List<String>
A list of extra arguments to pass to the container.
commands List<String>
A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
cpu Number

The amount of vCPU to allocate to the container. Possible values include 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2.0. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.0 / 2.0 or 0.5 / 1.0

envs List<Property Map>
One or more env blocks as detailed below.
ephemeralStorage String

The amount of ephemeral storage available to the Container App.

NOTE: ephemeral_storage is currently in preview and not configurable at this time.

memory String

The amount of memory to allocate to the container. Possible values are 0.5Gi, 1Gi, 1.5Gi, 2Gi, 2.5Gi, 3Gi, 3.5Gi and 4Gi. When there's a workload profile specified, there's no such constraint.

NOTE: cpu and memory must be specified in 0.25'/'0.5Gi combination increments. e.g. 1.25 / 2.5Gi or 0.75 / 1.5Gi

volumeMounts List<Property Map>
A volume_mounts block as detailed below.

AppTemplateInitContainerEnv
, AppTemplateInitContainerEnvArgs

Name This property is required. string
The name of the environment variable for the container.
SecretName string
The name of the secret that contains the value for this environment variable.
Value string

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

Name This property is required. string
The name of the environment variable for the container.
SecretName string
The name of the secret that contains the value for this environment variable.
Value string

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

name This property is required. String
The name of the environment variable for the container.
secretName String
The name of the secret that contains the value for this environment variable.
value String

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

name This property is required. string
The name of the environment variable for the container.
secretName string
The name of the secret that contains the value for this environment variable.
value string

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

name This property is required. str
The name of the environment variable for the container.
secret_name str
The name of the secret that contains the value for this environment variable.
value str

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

name This property is required. String
The name of the environment variable for the container.
secretName String
The name of the secret that contains the value for this environment variable.
value String

The value for this environment variable.

NOTE: This value is ignored if secret_name is used

AppTemplateInitContainerVolumeMount
, AppTemplateInitContainerVolumeMountArgs

Name This property is required. string
The name of the Volume to be mounted in the container.
Path This property is required. string
The path in the container at which to mount this volume.
SubPath string
The sub path of the volume to be mounted in the container.
Name This property is required. string
The name of the Volume to be mounted in the container.
Path This property is required. string
The path in the container at which to mount this volume.
SubPath string
The sub path of the volume to be mounted in the container.
name This property is required. String
The name of the Volume to be mounted in the container.
path This property is required. String
The path in the container at which to mount this volume.
subPath String
The sub path of the volume to be mounted in the container.
name This property is required. string
The name of the Volume to be mounted in the container.
path This property is required. string
The path in the container at which to mount this volume.
subPath string
The sub path of the volume to be mounted in the container.
name This property is required. str
The name of the Volume to be mounted in the container.
path This property is required. str
The path in the container at which to mount this volume.
sub_path str
The sub path of the volume to be mounted in the container.
name This property is required. String
The name of the Volume to be mounted in the container.
path This property is required. String
The path in the container at which to mount this volume.
subPath String
The sub path of the volume to be mounted in the container.

AppTemplateTcpScaleRule
, AppTemplateTcpScaleRuleArgs

ConcurrentRequests This property is required. string
The number of concurrent requests to trigger scaling.
Name This property is required. string
The name of the Scaling Rule
Authentications List<AppTemplateTcpScaleRuleAuthentication>
Zero or more authentication blocks as defined below.
ConcurrentRequests This property is required. string
The number of concurrent requests to trigger scaling.
Name This property is required. string
The name of the Scaling Rule
Authentications []AppTemplateTcpScaleRuleAuthentication
Zero or more authentication blocks as defined below.
concurrentRequests This property is required. String
The number of concurrent requests to trigger scaling.
name This property is required. String
The name of the Scaling Rule
authentications List<AppTemplateTcpScaleRuleAuthentication>
Zero or more authentication blocks as defined below.
concurrentRequests This property is required. string
The number of concurrent requests to trigger scaling.
name This property is required. string
The name of the Scaling Rule
authentications AppTemplateTcpScaleRuleAuthentication[]
Zero or more authentication blocks as defined below.
concurrent_requests This property is required. str
The number of concurrent requests to trigger scaling.
name This property is required. str
The name of the Scaling Rule
authentications Sequence[AppTemplateTcpScaleRuleAuthentication]
Zero or more authentication blocks as defined below.
concurrentRequests This property is required. String
The number of concurrent requests to trigger scaling.
name This property is required. String
The name of the Scaling Rule
authentications List<Property Map>
Zero or more authentication blocks as defined below.

AppTemplateTcpScaleRuleAuthentication
, AppTemplateTcpScaleRuleAuthenticationArgs

SecretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
TriggerParameter string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
SecretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
TriggerParameter string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. String
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter String
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. string
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter string
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secret_name This property is required. str
The name of the Container App Secret to use for this Scale Rule Authentication.
trigger_parameter str
The Trigger Parameter name to use the supply the value retrieved from the secret_name.
secretName This property is required. String
The name of the Container App Secret to use for this Scale Rule Authentication.
triggerParameter String
The Trigger Parameter name to use the supply the value retrieved from the secret_name.

AppTemplateVolume
, AppTemplateVolumeArgs

Name This property is required. string
The name of the volume.
MountOptions string
Mount options used while mounting the AzureFile. Must be a comma-separated string e.g. dir_mode=0751,file_mode=0751.
StorageName string
The name of the AzureFile storage.
StorageType string
The type of storage volume. Possible values are AzureFile, EmptyDir and Secret. Defaults to EmptyDir.
Name This property is required. string
The name of the volume.
MountOptions string
Mount options used while mounting the AzureFile. Must be a comma-separated string e.g. dir_mode=0751,file_mode=0751.
StorageName string
The name of the AzureFile storage.
StorageType string
The type of storage volume. Possible values are AzureFile, EmptyDir and Secret. Defaults to EmptyDir.
name This property is required. String
The name of the volume.
mountOptions String
Mount options used while mounting the AzureFile. Must be a comma-separated string e.g. dir_mode=0751,file_mode=0751.
storageName String
The name of the AzureFile storage.
storageType String
The type of storage volume. Possible values are AzureFile, EmptyDir and Secret. Defaults to EmptyDir.
name This property is required. string
The name of the volume.
mountOptions string
Mount options used while mounting the AzureFile. Must be a comma-separated string e.g. dir_mode=0751,file_mode=0751.
storageName string
The name of the AzureFile storage.
storageType string
The type of storage volume. Possible values are AzureFile, EmptyDir and Secret. Defaults to EmptyDir.
name This property is required. str
The name of the volume.
mount_options str
Mount options used while mounting the AzureFile. Must be a comma-separated string e.g. dir_mode=0751,file_mode=0751.
storage_name str
The name of the AzureFile storage.
storage_type str
The type of storage volume. Possible values are AzureFile, EmptyDir and Secret. Defaults to EmptyDir.
name This property is required. String
The name of the volume.
mountOptions String
Mount options used while mounting the AzureFile. Must be a comma-separated string e.g. dir_mode=0751,file_mode=0751.
storageName String
The name of the AzureFile storage.
storageType String
The type of storage volume. Possible values are AzureFile, EmptyDir and Secret. Defaults to EmptyDir.

Import

A Container App can be imported using the resource id, e.g.

$ pulumi import azure:containerapp/app:App example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/containerApps/myContainerApp"
Copy

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

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.