ManagedEnvironmentArgs

data class ManagedEnvironmentArgs(val appLogsConfiguration: Output<AppLogsConfigurationArgs>? = null, val daprAIConnectionString: Output<String>? = null, val daprAIInstrumentationKey: Output<String>? = null, val environmentName: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vnetConfiguration: Output<VnetConfigurationArgs>? = null, val zoneRedundant: Output<Boolean>? = null) : ConvertibleToJava<ManagedEnvironmentArgs>

An environment for hosting container apps API Version: 2022-03-01.

Example Usage

Create environments

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managedEnvironment = new AzureNative.App.ManagedEnvironment("managedEnvironment", new()
{
AppLogsConfiguration = new AzureNative.App.Inputs.AppLogsConfigurationArgs
{
LogAnalyticsConfiguration = new AzureNative.App.Inputs.LogAnalyticsConfigurationArgs
{
CustomerId = "string",
SharedKey = "string",
},
},
DaprAIConnectionString = "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/",
EnvironmentName = "testcontainerenv",
Location = "East US",
ResourceGroupName = "examplerg",
ZoneRedundant = true,
});
});
package main
import (
app "github.com/pulumi/pulumi-azure-native-sdk/app"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := app.NewManagedEnvironment(ctx, "managedEnvironment", &app.ManagedEnvironmentArgs{
AppLogsConfiguration: app.AppLogsConfigurationResponse{
LogAnalyticsConfiguration: &app.LogAnalyticsConfigurationArgs{
CustomerId: pulumi.String("string"),
SharedKey: pulumi.String("string"),
},
},
DaprAIConnectionString: pulumi.String("InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/"),
EnvironmentName: pulumi.String("testcontainerenv"),
Location: pulumi.String("East US"),
ResourceGroupName: pulumi.String("examplerg"),
ZoneRedundant: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.app.ManagedEnvironment;
import com.pulumi.azurenative.app.ManagedEnvironmentArgs;
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 managedEnvironment = new ManagedEnvironment("managedEnvironment", ManagedEnvironmentArgs.builder()
.appLogsConfiguration(Map.of("logAnalyticsConfiguration", Map.ofEntries(
Map.entry("customerId", "string"),
Map.entry("sharedKey", "string")
)))
.daprAIConnectionString("InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
.environmentName("testcontainerenv")
.location("East US")
.resourceGroupName("examplerg")
.zoneRedundant(true)
.build());
}
}

Import

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

$ pulumi import azure-native:app:ManagedEnvironment testcontainerenv /subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv

Constructors

Link copied to clipboard
constructor(appLogsConfiguration: Output<AppLogsConfigurationArgs>? = null, daprAIConnectionString: Output<String>? = null, daprAIInstrumentationKey: Output<String>? = null, environmentName: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, vnetConfiguration: Output<VnetConfigurationArgs>? = null, zoneRedundant: Output<Boolean>? = null)

Properties

Link copied to clipboard

Cluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" is supported

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

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

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

Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry

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

Name of the Environment.

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

The geo-location where the resource lives

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

The name of the resource group. The name is case insensitive.

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

Resource tags.

Link copied to clipboard

Vnet configuration for the environment

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

Whether or not this Managed Environment is zone-redundant.

Functions

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