ManagedEnvironment

class ManagedEnvironment : KotlinCustomResource

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

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

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

Link copied to clipboard

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

Link copied to clipboard
val defaultDomain: Output<String>

Default Domain Name for the cluster

Link copied to clipboard

Any errors that occurred during deployment or deployment validation

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Provisioning state of the Environment.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val staticIp: Output<String>

Static IP of the Environment

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Vnet configuration for the environment

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

Whether or not this Managed Environment is zone-redundant.