EnvironmentArgs

data class EnvironmentArgs(val daprApplicationInsightsConnectionString: Output<String>? = null, val infrastructureSubnetId: Output<String>? = null, val internalLoadBalancerEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val logAnalyticsWorkspaceId: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val zoneRedundancyEnabled: Output<Boolean>? = null) : ConvertibleToJava<EnvironmentArgs>

Manages a Container App Environment.

Example Usage

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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("PerGB2018")
.retentionInDays(30)
.build());
var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
.build());
}
}

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"

Constructors

Link copied to clipboard
fun EnvironmentArgs(daprApplicationInsightsConnectionString: Output<String>? = null, infrastructureSubnetId: Output<String>? = null, internalLoadBalancerEnabled: Output<Boolean>? = null, location: Output<String>? = null, logAnalyticsWorkspaceId: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, zoneRedundancyEnabled: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): EnvironmentArgs

Properties

Link copied to clipboard

Application Insights connection string used by Dapr to export Service to Service communication telemetry.

Link copied to clipboard
val infrastructureSubnetId: Output<String>? = null

The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created.

Link copied to clipboard

Should the Container Environment operate in Internal Load Balancing Mode? Defaults to false. Changing this forces a new resource to be created.

Link copied to clipboard
val location: Output<String>? = null

Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created.

Link copied to clipboard
val logAnalyticsWorkspaceId: Output<String>? = null

The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

The name of the Container Apps Managed Environment. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.

Link copied to clipboard
val zoneRedundancyEnabled: Output<Boolean>? = null

Should the Container App Environment be created with Zone Redundancy enabled? Defaults to false. Changing this forces a new resource to be created.