We recommend using Azure Native.
Azure Classic v6.2.0 published on Friday, Sep 27, 2024 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)
// 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.
- Resource
Group stringName - The name of the Resource Group where this Container App Environment exists.
- Name string
- The name of the Container Apps Managed Environment.
- Resource
Group stringName - The name of the Resource Group where this Container App Environment exists.
- name String
- The name of the Container Apps Managed Environment.
- resource
Group StringName - The name of the Resource Group where this Container App Environment exists.
- name string
- The name of the Container Apps Managed Environment.
- resource
Group 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.
- resource
Group StringName - The name of the Resource Group where this Container App Environment exists.
getEnvironment Result
The following output properties are available:
- Custom
Domain stringVerification Id - The ID of the Custom Domain Verification for this Container App Environment.
- Default
Domain string - The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
- Docker
Bridge 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.
- Infrastructure
Subnet stringId - 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 string
- The Azure Location where this Container App Environment exists.
- Log
Analytics stringWorkspace Name - The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- Name string
- Platform
Reserved stringCidr - The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- Platform
Reserved stringDns Ip Address - The IP address from the IP range defined by
platform_reserved_cidr
that is reserved for the internal DNS server. - Resource
Group stringName - Static
Ip stringAddress - The Static IP address of the Environment.
- Dictionary<string, string>
- A mapping of tags assigned to the resource.
- Custom
Domain stringVerification Id - The ID of the Custom Domain Verification for this Container App Environment.
- Default
Domain string - The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
- Docker
Bridge 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.
- Infrastructure
Subnet stringId - 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 string
- The Azure Location where this Container App Environment exists.
- Log
Analytics stringWorkspace Name - The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- Name string
- Platform
Reserved stringCidr - The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- Platform
Reserved stringDns Ip Address - The IP address from the IP range defined by
platform_reserved_cidr
that is reserved for the internal DNS server. - Resource
Group stringName - Static
Ip stringAddress - The Static IP address of the Environment.
- map[string]string
- A mapping of tags assigned to the resource.
- custom
Domain StringVerification Id - The ID of the Custom Domain Verification for this Container App Environment.
- default
Domain String - The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
- docker
Bridge 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.
- infrastructure
Subnet StringId - The ID of the Subnet in use by the Container Apps Control Plane.
- internal
Load BooleanBalancer Enabled - Does the Container App Environment operate in Internal Load Balancing Mode?
- location String
- The Azure Location where this Container App Environment exists.
- log
Analytics StringWorkspace Name - The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- name String
- platform
Reserved StringCidr - The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platform
Reserved StringDns Ip Address - The IP address from the IP range defined by
platform_reserved_cidr
that is reserved for the internal DNS server. - resource
Group StringName - static
Ip StringAddress - The Static IP address of the Environment.
- Map<String,String>
- A mapping of tags assigned to the resource.
- custom
Domain stringVerification Id - The ID of the Custom Domain Verification for this Container App Environment.
- default
Domain string - The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
- docker
Bridge 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.
- infrastructure
Subnet stringId - The ID of the Subnet in use by the Container Apps Control Plane.
- internal
Load booleanBalancer Enabled - Does the Container App Environment operate in Internal Load Balancing Mode?
- location string
- The Azure Location where this Container App Environment exists.
- log
Analytics stringWorkspace Name - The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- name string
- platform
Reserved stringCidr - The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platform
Reserved stringDns Ip Address - The IP address from the IP range defined by
platform_reserved_cidr
that is reserved for the internal DNS server. - resource
Group stringName - static
Ip 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_cidr
that 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.
- custom
Domain StringVerification Id - The ID of the Custom Domain Verification for this Container App Environment.
- default
Domain String - The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique.
- docker
Bridge 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.
- infrastructure
Subnet StringId - The ID of the Subnet in use by the Container Apps Control Plane.
- internal
Load BooleanBalancer Enabled - Does the Container App Environment operate in Internal Load Balancing Mode?
- location String
- The Azure Location where this Container App Environment exists.
- log
Analytics StringWorkspace Name - The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.
- name String
- platform
Reserved StringCidr - The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.
- platform
Reserved StringDns Ip Address - The IP address from the IP range defined by
platform_reserved_cidr
that is reserved for the internal DNS server. - resource
Group StringName - static
Ip 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
azurerm
Terraform Provider.