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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.containerapp.getEnvironment

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Use this data source to access information about an existing Container App Environment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.containerapp.getEnvironment({
        name: "example-environment",
        resourceGroupName: "example-resources",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.containerapp.get_environment(name="example-environment",
        resource_group_name="example-resources")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := containerapp.LookupEnvironment(ctx, &containerapp.LookupEnvironmentArgs{
    			Name:              "example-environment",
    			ResourceGroupName: "example-resources",
    		}, nil)
    		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 = Azure.ContainerApp.GetEnvironment.Invoke(new()
        {
            Name = "example-environment",
            ResourceGroupName = "example-resources",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.containerapp.ContainerappFunctions;
    import com.pulumi.azure.containerapp.inputs.GetEnvironmentArgs;
    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) {
            final var example = ContainerappFunctions.getEnvironment(GetEnvironmentArgs.builder()
                .name("example-environment")
                .resourceGroupName("example-resources")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:containerapp:getEnvironment
          Arguments:
            name: example-environment
            resourceGroupName: example-resources
    

    Using getEnvironment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getEnvironment(args: GetEnvironmentArgs, opts?: InvokeOptions): Promise<GetEnvironmentResult>
    function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentResult>
    def get_environment(name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetEnvironmentResult
    def get_environment_output(name: Optional[pulumi.Input[str]] = None,
                        resource_group_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentResult]
    func LookupEnvironment(ctx *Context, args *LookupEnvironmentArgs, opts ...InvokeOption) (*LookupEnvironmentResult, error)
    func LookupEnvironmentOutput(ctx *Context, args *LookupEnvironmentOutputArgs, opts ...InvokeOption) LookupEnvironmentResultOutput

    > Note: This function is named LookupEnvironment in the Go SDK.

    public static class GetEnvironment 
    {
        public static Task<GetEnvironmentResult> InvokeAsync(GetEnvironmentArgs args, InvokeOptions? opts = null)
        public static Output<GetEnvironmentResult> Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:containerapp/getEnvironment:getEnvironment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Container Apps Managed Environment.
    ResourceGroupName string
    The name of the Resource Group where this Container App Environment exists.
    Name string
    The name of the Container Apps Managed Environment.
    ResourceGroupName string
    The name of the Resource Group where this Container App Environment exists.
    name String
    The name of the Container Apps Managed Environment.
    resourceGroupName String
    The name of the Resource Group where this Container App Environment exists.
    name string
    The name of the Container Apps Managed Environment.
    resourceGroupName string
    The name of the Resource Group where this Container App Environment exists.
    name str
    The name of the Container Apps Managed Environment.
    resource_group_name str
    The name of the Resource Group where this Container App Environment exists.
    name String
    The name of the Container Apps Managed Environment.
    resourceGroupName String
    The name of the Resource Group where this Container App Environment exists.

    getEnvironment Result

    The following output properties are available:

    CustomDomainVerificationId string
    The ID of the Custom Domain Verification for this Container App Environment.
    DefaultDomain string
    The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
    DockerBridgeCidr string
    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.
    InfrastructureSubnetId string
    The ID of the Subnet in use by the Container Apps Control Plane.
    InternalLoadBalancerEnabled bool
    Does the Container App Environment operate in Internal Load Balancing Mode?
    Location string
    The Azure Location where this Container App Environment exists.
    LogAnalyticsWorkspaceName string
    The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
    Name string
    PlatformReservedCidr string
    The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
    PlatformReservedDnsIpAddress string
    The IP address from the IP range defined by platform_reserved_cidr that is reserved for the internal DNS server.
    ResourceGroupName string
    StaticIpAddress string
    The Static IP address of the Environment.
    Tags Dictionary<string, string>
    A mapping of tags assigned to the resource.
    CustomDomainVerificationId string
    The ID of the Custom Domain Verification for this Container App Environment.
    DefaultDomain string
    The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
    DockerBridgeCidr string
    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.
    InfrastructureSubnetId string
    The ID of the Subnet in use by the Container Apps Control Plane.
    InternalLoadBalancerEnabled bool
    Does the Container App Environment operate in Internal Load Balancing Mode?
    Location string
    The Azure Location where this Container App Environment exists.
    LogAnalyticsWorkspaceName string
    The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
    Name string
    PlatformReservedCidr string
    The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
    PlatformReservedDnsIpAddress string
    The IP address from the IP range defined by platform_reserved_cidr that is reserved for the internal DNS server.
    ResourceGroupName string
    StaticIpAddress string
    The Static IP address of the Environment.
    Tags map[string]string
    A mapping of tags assigned to the resource.
    customDomainVerificationId String
    The ID of the Custom Domain Verification for this Container App Environment.
    defaultDomain String
    The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
    dockerBridgeCidr String
    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.
    infrastructureSubnetId String
    The ID of the Subnet in use by the Container Apps Control Plane.
    internalLoadBalancerEnabled Boolean
    Does the Container App Environment operate in Internal Load Balancing Mode?
    location String
    The Azure Location where this Container App Environment exists.
    logAnalyticsWorkspaceName String
    The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
    name String
    platformReservedCidr String
    The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
    platformReservedDnsIpAddress String
    The IP address from the IP range defined by platform_reserved_cidr that is reserved for the internal DNS server.
    resourceGroupName String
    staticIpAddress String
    The Static IP address of the Environment.
    tags Map<String,String>
    A mapping of tags assigned to the resource.
    customDomainVerificationId string
    The ID of the Custom Domain Verification for this Container App Environment.
    defaultDomain string
    The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
    dockerBridgeCidr string
    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.
    infrastructureSubnetId string
    The ID of the Subnet in use by the Container Apps Control Plane.
    internalLoadBalancerEnabled boolean
    Does the Container App Environment operate in Internal Load Balancing Mode?
    location string
    The Azure Location where this Container App Environment exists.
    logAnalyticsWorkspaceName string
    The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
    name string
    platformReservedCidr string
    The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
    platformReservedDnsIpAddress string
    The IP address from the IP range defined by platform_reserved_cidr that is reserved for the internal DNS server.
    resourceGroupName string
    staticIpAddress string
    The Static IP address of the Environment.
    tags {[key: string]: string}
    A mapping of tags assigned to the resource.
    custom_domain_verification_id str
    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. This is generated at creation time to be globally unique.
    docker_bridge_cidr str
    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.
    infrastructure_subnet_id str
    The ID of the Subnet in use by the Container Apps Control Plane.
    internal_load_balancer_enabled bool
    Does the Container App Environment operate in Internal Load Balancing Mode?
    location str
    The Azure Location where this Container App Environment exists.
    log_analytics_workspace_name str
    The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
    name str
    platform_reserved_cidr str
    The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
    platform_reserved_dns_ip_address str
    The IP address from the IP range defined by platform_reserved_cidr that is reserved for the internal DNS server.
    resource_group_name str
    static_ip_address str
    The Static IP address of the Environment.
    tags Mapping[str, str]
    A mapping of tags assigned to the resource.
    customDomainVerificationId String
    The ID of the Custom Domain Verification for this Container App Environment.
    defaultDomain String
    The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
    dockerBridgeCidr String
    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.
    infrastructureSubnetId String
    The ID of the Subnet in use by the Container Apps Control Plane.
    internalLoadBalancerEnabled Boolean
    Does the Container App Environment operate in Internal Load Balancing Mode?
    location String
    The Azure Location where this Container App Environment exists.
    logAnalyticsWorkspaceName String
    The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
    name String
    platformReservedCidr String
    The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
    platformReservedDnsIpAddress String
    The IP address from the IP range defined by platform_reserved_cidr that is reserved for the internal DNS server.
    resourceGroupName String
    staticIpAddress String
    The Static IP address of the Environment.
    tags Map<String>
    A mapping of tags assigned to the resource.

    Package Details

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

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi