We recommend using Azure Native.
azure.containerapp.Environment
Explore with Pulumi AI
Manages a Container App Environment.
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: "my-environment",
    location: example.location,
    resourceGroupName: example.name,
    logsDestination: "log-analytics",
    logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id,
});
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="my-environment",
    location=example.location,
    resource_group_name=example.name,
    logs_destination="log-analytics",
    log_analytics_workspace_id=example_analytics_workspace.id)
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
		}
		_, err = containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{
			Name:                    pulumi.String("my-environment"),
			Location:                example.Location,
			ResourceGroupName:       example.Name,
			LogsDestination:         pulumi.String("log-analytics"),
			LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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 = "my-environment",
        Location = example.Location,
        ResourceGroupName = example.Name,
        LogsDestination = "log-analytics",
        LogAnalyticsWorkspaceId = exampleAnalyticsWorkspace.Id,
    });
});
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 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("my-environment")
            .location(example.location())
            .resourceGroupName(example.name())
            .logsDestination("log-analytics")
            .logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
            .build());
    }
}
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: my-environment
      location: ${example.location}
      resourceGroupName: ${example.name}
      logsDestination: log-analytics
      logAnalyticsWorkspaceId: ${exampleAnalyticsWorkspace.id}
Create Environment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Environment(name: string, args: EnvironmentArgs, opts?: CustomResourceOptions);@overload
def Environment(resource_name: str,
                args: EnvironmentArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def Environment(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_group_name: Optional[str] = None,
                internal_load_balancer_enabled: Optional[bool] = None,
                infrastructure_subnet_id: Optional[str] = None,
                dapr_application_insights_connection_string: Optional[str] = None,
                location: Optional[str] = None,
                log_analytics_workspace_id: Optional[str] = None,
                logs_destination: Optional[str] = None,
                mutual_tls_enabled: Optional[bool] = None,
                name: Optional[str] = None,
                infrastructure_resource_group_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                workload_profiles: Optional[Sequence[EnvironmentWorkloadProfileArgs]] = None,
                zone_redundancy_enabled: Optional[bool] = None)func NewEnvironment(ctx *Context, name string, args EnvironmentArgs, opts ...ResourceOption) (*Environment, error)public Environment(string name, EnvironmentArgs args, CustomResourceOptions? opts = null)
public Environment(String name, EnvironmentArgs args)
public Environment(String name, EnvironmentArgs args, CustomResourceOptions options)
type: azure:containerapp:Environment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentArgs
- 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 environmentResource = new Azure.ContainerApp.Environment("environmentResource", new()
{
    ResourceGroupName = "string",
    InternalLoadBalancerEnabled = false,
    InfrastructureSubnetId = "string",
    DaprApplicationInsightsConnectionString = "string",
    Location = "string",
    LogAnalyticsWorkspaceId = "string",
    LogsDestination = "string",
    MutualTlsEnabled = false,
    Name = "string",
    InfrastructureResourceGroupName = "string",
    Tags = 
    {
        { "string", "string" },
    },
    WorkloadProfiles = new[]
    {
        new Azure.ContainerApp.Inputs.EnvironmentWorkloadProfileArgs
        {
            Name = "string",
            WorkloadProfileType = "string",
            MaximumCount = 0,
            MinimumCount = 0,
        },
    },
    ZoneRedundancyEnabled = false,
});
example, err := containerapp.NewEnvironment(ctx, "environmentResource", &containerapp.EnvironmentArgs{
	ResourceGroupName:                       pulumi.String("string"),
	InternalLoadBalancerEnabled:             pulumi.Bool(false),
	InfrastructureSubnetId:                  pulumi.String("string"),
	DaprApplicationInsightsConnectionString: pulumi.String("string"),
	Location:                                pulumi.String("string"),
	LogAnalyticsWorkspaceId:                 pulumi.String("string"),
	LogsDestination:                         pulumi.String("string"),
	MutualTlsEnabled:                        pulumi.Bool(false),
	Name:                                    pulumi.String("string"),
	InfrastructureResourceGroupName:         pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	WorkloadProfiles: containerapp.EnvironmentWorkloadProfileArray{
		&containerapp.EnvironmentWorkloadProfileArgs{
			Name:                pulumi.String("string"),
			WorkloadProfileType: pulumi.String("string"),
			MaximumCount:        pulumi.Int(0),
			MinimumCount:        pulumi.Int(0),
		},
	},
	ZoneRedundancyEnabled: pulumi.Bool(false),
})
var environmentResource = new Environment("environmentResource", EnvironmentArgs.builder()
    .resourceGroupName("string")
    .internalLoadBalancerEnabled(false)
    .infrastructureSubnetId("string")
    .daprApplicationInsightsConnectionString("string")
    .location("string")
    .logAnalyticsWorkspaceId("string")
    .logsDestination("string")
    .mutualTlsEnabled(false)
    .name("string")
    .infrastructureResourceGroupName("string")
    .tags(Map.of("string", "string"))
    .workloadProfiles(EnvironmentWorkloadProfileArgs.builder()
        .name("string")
        .workloadProfileType("string")
        .maximumCount(0)
        .minimumCount(0)
        .build())
    .zoneRedundancyEnabled(false)
    .build());
environment_resource = azure.containerapp.Environment("environmentResource",
    resource_group_name="string",
    internal_load_balancer_enabled=False,
    infrastructure_subnet_id="string",
    dapr_application_insights_connection_string="string",
    location="string",
    log_analytics_workspace_id="string",
    logs_destination="string",
    mutual_tls_enabled=False,
    name="string",
    infrastructure_resource_group_name="string",
    tags={
        "string": "string",
    },
    workload_profiles=[{
        "name": "string",
        "workload_profile_type": "string",
        "maximum_count": 0,
        "minimum_count": 0,
    }],
    zone_redundancy_enabled=False)
const environmentResource = new azure.containerapp.Environment("environmentResource", {
    resourceGroupName: "string",
    internalLoadBalancerEnabled: false,
    infrastructureSubnetId: "string",
    daprApplicationInsightsConnectionString: "string",
    location: "string",
    logAnalyticsWorkspaceId: "string",
    logsDestination: "string",
    mutualTlsEnabled: false,
    name: "string",
    infrastructureResourceGroupName: "string",
    tags: {
        string: "string",
    },
    workloadProfiles: [{
        name: "string",
        workloadProfileType: "string",
        maximumCount: 0,
        minimumCount: 0,
    }],
    zoneRedundancyEnabled: false,
});
type: azure:containerapp:Environment
properties:
    daprApplicationInsightsConnectionString: string
    infrastructureResourceGroupName: string
    infrastructureSubnetId: string
    internalLoadBalancerEnabled: false
    location: string
    logAnalyticsWorkspaceId: string
    logsDestination: string
    mutualTlsEnabled: false
    name: string
    resourceGroupName: string
    tags:
        string: string
    workloadProfiles:
        - maximumCount: 0
          minimumCount: 0
          name: string
          workloadProfileType: string
    zoneRedundancyEnabled: false
Environment 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 Environment resource accepts the following input properties:
- ResourceGroup stringName 
- 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.
- DaprApplication stringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- InfrastructureResource stringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- InfrastructureSubnet stringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- InternalLoad boolBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- Location string
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- LogAnalytics stringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- LogsDestination string
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- MutualTls boolEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- Name string
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- WorkloadProfiles List<EnvironmentWorkload Profile> 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- ZoneRedundancy boolEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- ResourceGroup stringName 
- 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.
- DaprApplication stringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- InfrastructureResource stringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- InfrastructureSubnet stringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- InternalLoad boolBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- Location string
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- LogAnalytics stringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- LogsDestination string
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- MutualTls boolEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- Name string
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- WorkloadProfiles []EnvironmentWorkload Profile Args 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- ZoneRedundancy boolEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- resourceGroup StringName 
- 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.
- daprApplication StringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- infrastructureResource StringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- infrastructureSubnet StringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- internalLoad BooleanBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- location String
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- logAnalytics StringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- logsDestination String
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- mutualTls BooleanEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- name String
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- workloadProfiles List<EnvironmentWorkload Profile> 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- zoneRedundancy BooleanEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- resourceGroup stringName 
- 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.
- daprApplication stringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- infrastructureResource stringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- infrastructureSubnet stringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- internalLoad booleanBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- location string
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- logAnalytics stringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- logsDestination string
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- mutualTls booleanEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- name string
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- workloadProfiles EnvironmentWorkload Profile[] 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- zoneRedundancy booleanEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- resource_group_ strname 
- 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.
- dapr_application_ strinsights_ connection_ string 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- infrastructure_resource_ strgroup_ name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- infrastructure_subnet_ strid 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- internal_load_ boolbalancer_ enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- location str
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- log_analytics_ strworkspace_ id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- logs_destination str
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- mutual_tls_ boolenabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- name str
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- workload_profiles Sequence[EnvironmentWorkload Profile Args] 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- zone_redundancy_ boolenabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- resourceGroup StringName 
- 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.
- daprApplication StringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- infrastructureResource StringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- infrastructureSubnet StringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- internalLoad BooleanBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- location String
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- logAnalytics StringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- logsDestination String
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- mutualTls BooleanEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- name String
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
- workloadProfiles List<Property Map>
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- zoneRedundancy BooleanEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the Environment resource produces the following output properties:
- CustomDomain stringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- DefaultDomain string
- The default, publicly resolvable, name of this Container App Environment.
- DockerBridge stringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- Id string
- The provider-assigned unique ID for this managed resource.
- PlatformReserved stringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- PlatformReserved stringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- StaticIp stringAddress 
- The Static IP address of the Environment.
- CustomDomain stringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- DefaultDomain string
- The default, publicly resolvable, name of this Container App Environment.
- DockerBridge stringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- Id string
- The provider-assigned unique ID for this managed resource.
- PlatformReserved stringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- PlatformReserved stringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- StaticIp stringAddress 
- The Static IP address of the Environment.
- customDomain StringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- defaultDomain String
- The default, publicly resolvable, name of this Container App Environment.
- dockerBridge StringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- id String
- The provider-assigned unique ID for this managed resource.
- platformReserved StringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platformReserved StringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- staticIp StringAddress 
- The Static IP address of the Environment.
- customDomain stringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- defaultDomain string
- The default, publicly resolvable, name of this Container App Environment.
- dockerBridge stringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- id string
- The provider-assigned unique ID for this managed resource.
- platformReserved stringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platformReserved stringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- staticIp stringAddress 
- The Static IP address of the Environment.
- custom_domain_ strverification_ id 
- The ID of the Custom Domain Verification for this Container App Environment.
- default_domain str
- The default, publicly resolvable, name of this Container App Environment.
- docker_bridge_ strcidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- id str
- The provider-assigned unique ID for this managed resource.
- platform_reserved_ strcidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platform_reserved_ strdns_ ip_ address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- static_ip_ straddress 
- The Static IP address of the Environment.
- customDomain StringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- defaultDomain String
- The default, publicly resolvable, name of this Container App Environment.
- dockerBridge StringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- id String
- The provider-assigned unique ID for this managed resource.
- platformReserved StringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platformReserved StringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- staticIp StringAddress 
- The Static IP address of the Environment.
Look up Existing Environment Resource
Get an existing Environment 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?: EnvironmentState, opts?: CustomResourceOptions): Environment@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        custom_domain_verification_id: Optional[str] = None,
        dapr_application_insights_connection_string: Optional[str] = None,
        default_domain: Optional[str] = None,
        docker_bridge_cidr: Optional[str] = None,
        infrastructure_resource_group_name: Optional[str] = None,
        infrastructure_subnet_id: Optional[str] = None,
        internal_load_balancer_enabled: Optional[bool] = None,
        location: Optional[str] = None,
        log_analytics_workspace_id: Optional[str] = None,
        logs_destination: Optional[str] = None,
        mutual_tls_enabled: Optional[bool] = None,
        name: Optional[str] = None,
        platform_reserved_cidr: Optional[str] = None,
        platform_reserved_dns_ip_address: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        static_ip_address: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        workload_profiles: Optional[Sequence[EnvironmentWorkloadProfileArgs]] = None,
        zone_redundancy_enabled: Optional[bool] = None) -> Environmentfunc GetEnvironment(ctx *Context, name string, id IDInput, state *EnvironmentState, opts ...ResourceOption) (*Environment, error)public static Environment Get(string name, Input<string> id, EnvironmentState? state, CustomResourceOptions? opts = null)public static Environment get(String name, Output<String> id, EnvironmentState state, CustomResourceOptions options)resources:  _:    type: azure:containerapp:Environment    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- CustomDomain stringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- DaprApplication stringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- DefaultDomain string
- The default, publicly resolvable, name of this Container App Environment.
- DockerBridge stringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- InfrastructureResource stringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- InfrastructureSubnet stringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- InternalLoad boolBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- Location string
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- LogAnalytics stringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- LogsDestination string
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- MutualTls boolEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- Name string
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- PlatformReserved stringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- PlatformReserved stringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- ResourceGroup stringName 
- 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.
- StaticIp stringAddress 
- The Static IP address of the Environment.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- WorkloadProfiles List<EnvironmentWorkload Profile> 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- ZoneRedundancy boolEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- CustomDomain stringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- DaprApplication stringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- DefaultDomain string
- The default, publicly resolvable, name of this Container App Environment.
- DockerBridge stringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- InfrastructureResource stringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- InfrastructureSubnet stringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- InternalLoad boolBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- Location string
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- LogAnalytics stringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- LogsDestination string
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- MutualTls boolEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- Name string
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- PlatformReserved stringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- PlatformReserved stringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- ResourceGroup stringName 
- 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.
- StaticIp stringAddress 
- The Static IP address of the Environment.
- map[string]string
- A mapping of tags to assign to the resource.
- WorkloadProfiles []EnvironmentWorkload Profile Args 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- ZoneRedundancy boolEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- customDomain StringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- daprApplication StringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- defaultDomain String
- The default, publicly resolvable, name of this Container App Environment.
- dockerBridge StringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- infrastructureResource StringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- infrastructureSubnet StringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- internalLoad BooleanBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- location String
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- logAnalytics StringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- logsDestination String
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- mutualTls BooleanEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- name String
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- platformReserved StringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platformReserved StringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- resourceGroup StringName 
- 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.
- staticIp StringAddress 
- The Static IP address of the Environment.
- Map<String,String>
- A mapping of tags to assign to the resource.
- workloadProfiles List<EnvironmentWorkload Profile> 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- zoneRedundancy BooleanEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- customDomain stringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- daprApplication stringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- defaultDomain string
- The default, publicly resolvable, name of this Container App Environment.
- dockerBridge stringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- infrastructureResource stringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- infrastructureSubnet stringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- internalLoad booleanBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- location string
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- logAnalytics stringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- logsDestination string
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- mutualTls booleanEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- name string
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- platformReserved stringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platformReserved stringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- resourceGroup stringName 
- 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.
- staticIp stringAddress 
- The Static IP address of the Environment.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- workloadProfiles EnvironmentWorkload Profile[] 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- zoneRedundancy booleanEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- custom_domain_ strverification_ id 
- The ID of the Custom Domain Verification for this Container App Environment.
- dapr_application_ strinsights_ connection_ string 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- default_domain str
- The default, publicly resolvable, name of this Container App Environment.
- docker_bridge_ strcidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- infrastructure_resource_ strgroup_ name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- infrastructure_subnet_ strid 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- internal_load_ boolbalancer_ enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- location str
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- log_analytics_ strworkspace_ id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- logs_destination str
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- mutual_tls_ boolenabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- name str
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- platform_reserved_ strcidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platform_reserved_ strdns_ ip_ address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- resource_group_ strname 
- 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.
- static_ip_ straddress 
- The Static IP address of the Environment.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- workload_profiles Sequence[EnvironmentWorkload Profile Args] 
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- zone_redundancy_ boolenabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- customDomain StringVerification Id 
- The ID of the Custom Domain Verification for this Container App Environment.
- daprApplication StringInsights Connection String 
- Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created.
- defaultDomain String
- The default, publicly resolvable, name of this Container App Environment.
- dockerBridge StringCidr 
- The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.
- infrastructureResource StringGroup Name 
- Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. - Note: Only valid if a - workload_profileis specified. If- infrastructure_subnet_idis specified, this resource group will be created in the same subscription as- infrastructure_subnet_id.
- infrastructureSubnet StringId 
- The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. - Note: The Subnet must have a - /21or larger address space.
- internalLoad BooleanBalancer Enabled 
- Should the Container Environment operate in Internal Load Balancing Mode? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
- location String
- Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.
- logAnalytics StringWorkspace Id 
- The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. - Note: required if - logs_destinationis set to- log-analytics. Cannot be set if- logs_destinationis set to- azure-monitor.
- logsDestination String
- Where the application logs will be saved for this Container Apps Managed Environment. Possible values include log-analyticsandazure-monitor. Omitting this value will result in logs being streamed only.
- mutualTls BooleanEnabled 
- Should mutual transport layer security (mTLS) be enabled? Defaults to - false.- Note: This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. 
- name String
- The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.
- platformReserved StringCidr 
- The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platformReserved StringDns Ip Address 
- The IP address from the IP range defined by platform_reserved_cidrthat is reserved for the internal DNS server.
- resourceGroup StringName 
- 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.
- staticIp StringAddress 
- The Static IP address of the Environment.
- Map<String>
- A mapping of tags to assign to the resource.
- workloadProfiles List<Property Map>
- The profile of the workload to scope the container app execution. A workload_profileblock as defined below.
- zoneRedundancy BooleanEnabled 
- Should the Container App Environment be created with Zone Redundancy enabled? Defaults to - false. Changing this forces a new resource to be created.- Note: can only be set to - trueif- infrastructure_subnet_idis specified.
Supporting Types
EnvironmentWorkloadProfile, EnvironmentWorkloadProfileArgs      
- Name string
- The name of the workload profile.
- WorkloadProfile stringType 
- Workload profile type for the workloads to run on. Possible values include - Consumption,- D4,- D8,- D16,- D32,- E4,- E8,- E16and- E32.- Note: A - Consumptiontype must have a name of- Consumptionand an environment may only have one- ConsumptionWorkload Profile.- Note: Defining a - Consumptionprofile is optional, however, Environments created without an initial Workload Profile cannot have them added at a later time and must be recreated. Similarly, an environment created with Profiles must always have at least one defined Profile, removing all profiles will force a recreation of the resource.
- MaximumCount int
- The maximum number of instances of workload profile that can be deployed in the Container App Environment.
- MinimumCount int
- The minimum number of instances of workload profile that can be deployed in the Container App Environment.
- Name string
- The name of the workload profile.
- WorkloadProfile stringType 
- Workload profile type for the workloads to run on. Possible values include - Consumption,- D4,- D8,- D16,- D32,- E4,- E8,- E16and- E32.- Note: A - Consumptiontype must have a name of- Consumptionand an environment may only have one- ConsumptionWorkload Profile.- Note: Defining a - Consumptionprofile is optional, however, Environments created without an initial Workload Profile cannot have them added at a later time and must be recreated. Similarly, an environment created with Profiles must always have at least one defined Profile, removing all profiles will force a recreation of the resource.
- MaximumCount int
- The maximum number of instances of workload profile that can be deployed in the Container App Environment.
- MinimumCount int
- The minimum number of instances of workload profile that can be deployed in the Container App Environment.
- name String
- The name of the workload profile.
- workloadProfile StringType 
- Workload profile type for the workloads to run on. Possible values include - Consumption,- D4,- D8,- D16,- D32,- E4,- E8,- E16and- E32.- Note: A - Consumptiontype must have a name of- Consumptionand an environment may only have one- ConsumptionWorkload Profile.- Note: Defining a - Consumptionprofile is optional, however, Environments created without an initial Workload Profile cannot have them added at a later time and must be recreated. Similarly, an environment created with Profiles must always have at least one defined Profile, removing all profiles will force a recreation of the resource.
- maximumCount Integer
- The maximum number of instances of workload profile that can be deployed in the Container App Environment.
- minimumCount Integer
- The minimum number of instances of workload profile that can be deployed in the Container App Environment.
- name string
- The name of the workload profile.
- workloadProfile stringType 
- Workload profile type for the workloads to run on. Possible values include - Consumption,- D4,- D8,- D16,- D32,- E4,- E8,- E16and- E32.- Note: A - Consumptiontype must have a name of- Consumptionand an environment may only have one- ConsumptionWorkload Profile.- Note: Defining a - Consumptionprofile is optional, however, Environments created without an initial Workload Profile cannot have them added at a later time and must be recreated. Similarly, an environment created with Profiles must always have at least one defined Profile, removing all profiles will force a recreation of the resource.
- maximumCount number
- The maximum number of instances of workload profile that can be deployed in the Container App Environment.
- minimumCount number
- The minimum number of instances of workload profile that can be deployed in the Container App Environment.
- name str
- The name of the workload profile.
- workload_profile_ strtype 
- Workload profile type for the workloads to run on. Possible values include - Consumption,- D4,- D8,- D16,- D32,- E4,- E8,- E16and- E32.- Note: A - Consumptiontype must have a name of- Consumptionand an environment may only have one- ConsumptionWorkload Profile.- Note: Defining a - Consumptionprofile is optional, however, Environments created without an initial Workload Profile cannot have them added at a later time and must be recreated. Similarly, an environment created with Profiles must always have at least one defined Profile, removing all profiles will force a recreation of the resource.
- maximum_count int
- The maximum number of instances of workload profile that can be deployed in the Container App Environment.
- minimum_count int
- The minimum number of instances of workload profile that can be deployed in the Container App Environment.
- name String
- The name of the workload profile.
- workloadProfile StringType 
- Workload profile type for the workloads to run on. Possible values include - Consumption,- D4,- D8,- D16,- D32,- E4,- E8,- E16and- E32.- Note: A - Consumptiontype must have a name of- Consumptionand an environment may only have one- ConsumptionWorkload Profile.- Note: Defining a - Consumptionprofile is optional, however, Environments created without an initial Workload Profile cannot have them added at a later time and must be recreated. Similarly, an environment created with Profiles must always have at least one defined Profile, removing all profiles will force a recreation of the resource.
- maximumCount Number
- The maximum number of instances of workload profile that can be deployed in the Container App Environment.
- minimumCount Number
- The minimum number of instances of workload profile that can be deployed in the Container App Environment.
Import
A Container App Environment can be imported using the resource id, e.g.
$ pulumi import azure:containerapp/environment:Environment example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myEnvironment"
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 azurermTerraform Provider.