We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.containerapp.getEnvironment
Explore with Pulumi AI
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)
public static Output<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
fn::invoke:
  function: azure:containerapp/getEnvironment:getEnvironment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of the Container Apps Managed Environment.
- ResourceGroup stringName 
- The name of the Resource Group where this Container App Environment exists.
- Name string
- The name of the Container Apps Managed Environment.
- ResourceGroup stringName 
- The name of the Resource Group where this Container App Environment exists.
- name String
- The name of the Container Apps Managed Environment.
- resourceGroup StringName 
- The name of the Resource Group where this Container App Environment exists.
- name string
- The name of the Container Apps Managed Environment.
- resourceGroup stringName 
- The name of the Resource Group where this Container App Environment exists.
- name str
- The name of the Container Apps Managed Environment.
- resource_group_ strname 
- The name of the Resource Group where this Container App Environment exists.
- name String
- The name of the Container Apps Managed Environment.
- resourceGroup StringName 
- The name of the Resource Group where this Container App Environment exists.
getEnvironment Result
The following output properties are available:
- 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. This is generated at creation time to be globally unique.
- 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.
- InfrastructureSubnet stringId 
- The ID of the Subnet in use by the Container Apps Control Plane.
- InternalLoad boolBalancer Enabled 
- Does the Container App Environment operate in Internal Load Balancing Mode?
- Location string
- The Azure Location where this Container App Environment exists.
- LogAnalytics stringWorkspace Name 
- The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- Name string
- 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 
- StaticIp stringAddress 
- The Static IP address of the Environment.
- Dictionary<string, string>
- A mapping of tags assigned to the resource.
- 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. This is generated at creation time to be globally unique.
- 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.
- InfrastructureSubnet stringId 
- The ID of the Subnet in use by the Container Apps Control Plane.
- InternalLoad boolBalancer Enabled 
- Does the Container App Environment operate in Internal Load Balancing Mode?
- Location string
- The Azure Location where this Container App Environment exists.
- LogAnalytics stringWorkspace Name 
- The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- Name string
- 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 
- StaticIp stringAddress 
- The Static IP address of the Environment.
- map[string]string
- A mapping of tags assigned to the resource.
- 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. This is generated at creation time to be globally unique.
- 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.
- infrastructureSubnet StringId 
- The ID of the Subnet in use by the Container Apps Control Plane.
- internalLoad BooleanBalancer Enabled 
- Does the Container App Environment operate in Internal Load Balancing Mode?
- location String
- The Azure Location where this Container App Environment exists.
- logAnalytics StringWorkspace Name 
- The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- name String
- 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 
- staticIp StringAddress 
- The Static IP address of the Environment.
- Map<String,String>
- A mapping of tags assigned to the resource.
- 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. This is generated at creation time to be globally unique.
- 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.
- infrastructureSubnet stringId 
- The ID of the Subnet in use by the Container Apps Control Plane.
- internalLoad booleanBalancer Enabled 
- Does the Container App Environment operate in Internal Load Balancing Mode?
- location string
- The Azure Location where this Container App Environment exists.
- logAnalytics stringWorkspace Name 
- The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- name string
- 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 
- staticIp stringAddress 
- The Static IP address of the Environment.
- {[key: string]: string}
- A mapping of tags assigned to the resource.
- 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. This is generated at creation time to be globally unique.
- 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.
- infrastructure_subnet_ strid 
- The ID of the Subnet in use by the Container Apps Control Plane.
- internal_load_ boolbalancer_ enabled 
- Does the Container App Environment operate in Internal Load Balancing Mode?
- location str
- The Azure Location where this Container App Environment exists.
- log_analytics_ strworkspace_ name 
- The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- name str
- 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 
- static_ip_ straddress 
- The Static IP address of the Environment.
- Mapping[str, str]
- A mapping of tags assigned to the resource.
- 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. This is generated at creation time to be globally unique.
- 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.
- infrastructureSubnet StringId 
- The ID of the Subnet in use by the Container Apps Control Plane.
- internalLoad BooleanBalancer Enabled 
- Does the Container App Environment operate in Internal Load Balancing Mode?
- location String
- The Azure Location where this Container App Environment exists.
- logAnalytics StringWorkspace Name 
- The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- name String
- 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 
- staticIp StringAddress 
- The Static IP address of the Environment.
- 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 azurermTerraform Provider.