We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.appservice.getEnvironmentV3
Explore with Pulumi AI
Use this data source to access information about an existing 3rd Generation (v3) App Service Environment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getEnvironmentV3({
    name: "example-ASE",
    resourceGroupName: "example-resource-group",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.appservice.get_environment_v3(name="example-ASE",
    resource_group_name="example-resource-group")
pulumi.export("id", example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := appservice.LookupEnvironmentV3(ctx, &appservice.LookupEnvironmentV3Args{
			Name:              "example-ASE",
			ResourceGroupName: "example-resource-group",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.AppService.GetEnvironmentV3.Invoke(new()
    {
        Name = "example-ASE",
        ResourceGroupName = "example-resource-group",
    });
    return new Dictionary<string, object?>
    {
        ["id"] = example.Apply(getEnvironmentV3Result => getEnvironmentV3Result.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.appservice.AppserviceFunctions;
import com.pulumi.azure.appservice.inputs.GetEnvironmentV3Args;
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 = AppserviceFunctions.getEnvironmentV3(GetEnvironmentV3Args.builder()
            .name("example-ASE")
            .resourceGroupName("example-resource-group")
            .build());
        ctx.export("id", example.applyValue(getEnvironmentV3Result -> getEnvironmentV3Result.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:appservice:getEnvironmentV3
      arguments:
        name: example-ASE
        resourceGroupName: example-resource-group
outputs:
  id: ${example.id}
Using getEnvironmentV3
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 getEnvironmentV3(args: GetEnvironmentV3Args, opts?: InvokeOptions): Promise<GetEnvironmentV3Result>
function getEnvironmentV3Output(args: GetEnvironmentV3OutputArgs, opts?: InvokeOptions): Output<GetEnvironmentV3Result>def get_environment_v3(name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetEnvironmentV3Result
def get_environment_v3_output(name: Optional[pulumi.Input[str]] = None,
                       resource_group_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentV3Result]func LookupEnvironmentV3(ctx *Context, args *LookupEnvironmentV3Args, opts ...InvokeOption) (*LookupEnvironmentV3Result, error)
func LookupEnvironmentV3Output(ctx *Context, args *LookupEnvironmentV3OutputArgs, opts ...InvokeOption) LookupEnvironmentV3ResultOutput> Note: This function is named LookupEnvironmentV3 in the Go SDK.
public static class GetEnvironmentV3 
{
    public static Task<GetEnvironmentV3Result> InvokeAsync(GetEnvironmentV3Args args, InvokeOptions? opts = null)
    public static Output<GetEnvironmentV3Result> Invoke(GetEnvironmentV3InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnvironmentV3Result> getEnvironmentV3(GetEnvironmentV3Args args, InvokeOptions options)
public static Output<GetEnvironmentV3Result> getEnvironmentV3(GetEnvironmentV3Args args, InvokeOptions options)
fn::invoke:
  function: azure:appservice/getEnvironmentV3:getEnvironmentV3
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of this v3 App Service Environment.
- ResourceGroup stringName 
- The name of the Resource Group where the v3 App Service Environment exists.
- Name string
- The name of this v3 App Service Environment.
- ResourceGroup stringName 
- The name of the Resource Group where the v3 App Service Environment exists.
- name String
- The name of this v3 App Service Environment.
- resourceGroup StringName 
- The name of the Resource Group where the v3 App Service Environment exists.
- name string
- The name of this v3 App Service Environment.
- resourceGroup stringName 
- The name of the Resource Group where the v3 App Service Environment exists.
- name str
- The name of this v3 App Service Environment.
- resource_group_ strname 
- The name of the Resource Group where the v3 App Service Environment exists.
- name String
- The name of this v3 App Service Environment.
- resourceGroup StringName 
- The name of the Resource Group where the v3 App Service Environment exists.
getEnvironmentV3 Result
The following output properties are available:
- AllowNew boolPrivate Endpoint Connections 
- Are new Private Endpoint Connections allowed.
- ClusterSettings List<GetEnvironment V3Cluster Setting> 
- A cluster_settingblock as defined below.
- DedicatedHost intCount 
- The number of Dedicated Hosts used by this ASEv3.
- DnsSuffix string
- the DNS suffix for this App Service Environment V3.
- ExternalInbound List<string>Ip Addresses 
- The external inbound IP addresses of the App Service Environment V3.
- Id string
- The provider-assigned unique ID for this managed resource.
- InboundNetwork List<GetDependencies Environment V3Inbound Network Dependency> 
- An Inbound Network Dependencies block as defined below.
- InternalInbound List<string>Ip Addresses 
- The internal inbound IP addresses of the App Service Environment V3.
- InternalLoad stringBalancing Mode 
- The Internal Load Balancing Mode of this ASEv3.
- IpSsl intAddress Count 
- The number of IP SSL addresses reserved for the App Service Environment V3.
- LinuxOutbound List<string>Ip Addresses 
- The list of Outbound IP Addresses of Linux based Apps in this App Service Environment V3.
- Location string
- The location where the App Service Environment exists.
- Name string
- The name of the Cluster Setting.
- PricingTier string
- Pricing tier for the front end instances.
- RemoteDebugging boolEnabled 
- ResourceGroup stringName 
- SubnetId string
- The ID of the v3 App Service Environment Subnet.
- Dictionary<string, string>
- A mapping of tags assigned to the v3 App Service Environment.
- WindowsOutbound List<string>Ip Addresses 
- Outbound addresses of Windows based Apps in this App Service Environment V3.
- ZoneRedundant bool
- AllowNew boolPrivate Endpoint Connections 
- Are new Private Endpoint Connections allowed.
- ClusterSettings []GetEnvironment V3Cluster Setting 
- A cluster_settingblock as defined below.
- DedicatedHost intCount 
- The number of Dedicated Hosts used by this ASEv3.
- DnsSuffix string
- the DNS suffix for this App Service Environment V3.
- ExternalInbound []stringIp Addresses 
- The external inbound IP addresses of the App Service Environment V3.
- Id string
- The provider-assigned unique ID for this managed resource.
- InboundNetwork []GetDependencies Environment V3Inbound Network Dependency 
- An Inbound Network Dependencies block as defined below.
- InternalInbound []stringIp Addresses 
- The internal inbound IP addresses of the App Service Environment V3.
- InternalLoad stringBalancing Mode 
- The Internal Load Balancing Mode of this ASEv3.
- IpSsl intAddress Count 
- The number of IP SSL addresses reserved for the App Service Environment V3.
- LinuxOutbound []stringIp Addresses 
- The list of Outbound IP Addresses of Linux based Apps in this App Service Environment V3.
- Location string
- The location where the App Service Environment exists.
- Name string
- The name of the Cluster Setting.
- PricingTier string
- Pricing tier for the front end instances.
- RemoteDebugging boolEnabled 
- ResourceGroup stringName 
- SubnetId string
- The ID of the v3 App Service Environment Subnet.
- map[string]string
- A mapping of tags assigned to the v3 App Service Environment.
- WindowsOutbound []stringIp Addresses 
- Outbound addresses of Windows based Apps in this App Service Environment V3.
- ZoneRedundant bool
- allowNew BooleanPrivate Endpoint Connections 
- Are new Private Endpoint Connections allowed.
- clusterSettings List<GetEnvironment V3Cluster Setting> 
- A cluster_settingblock as defined below.
- dedicatedHost IntegerCount 
- The number of Dedicated Hosts used by this ASEv3.
- dnsSuffix String
- the DNS suffix for this App Service Environment V3.
- externalInbound List<String>Ip Addresses 
- The external inbound IP addresses of the App Service Environment V3.
- id String
- The provider-assigned unique ID for this managed resource.
- inboundNetwork List<GetDependencies Environment V3Inbound Network Dependency> 
- An Inbound Network Dependencies block as defined below.
- internalInbound List<String>Ip Addresses 
- The internal inbound IP addresses of the App Service Environment V3.
- internalLoad StringBalancing Mode 
- The Internal Load Balancing Mode of this ASEv3.
- ipSsl IntegerAddress Count 
- The number of IP SSL addresses reserved for the App Service Environment V3.
- linuxOutbound List<String>Ip Addresses 
- The list of Outbound IP Addresses of Linux based Apps in this App Service Environment V3.
- location String
- The location where the App Service Environment exists.
- name String
- The name of the Cluster Setting.
- pricingTier String
- Pricing tier for the front end instances.
- remoteDebugging BooleanEnabled 
- resourceGroup StringName 
- subnetId String
- The ID of the v3 App Service Environment Subnet.
- Map<String,String>
- A mapping of tags assigned to the v3 App Service Environment.
- windowsOutbound List<String>Ip Addresses 
- Outbound addresses of Windows based Apps in this App Service Environment V3.
- zoneRedundant Boolean
- allowNew booleanPrivate Endpoint Connections 
- Are new Private Endpoint Connections allowed.
- clusterSettings GetEnvironment V3Cluster Setting[] 
- A cluster_settingblock as defined below.
- dedicatedHost numberCount 
- The number of Dedicated Hosts used by this ASEv3.
- dnsSuffix string
- the DNS suffix for this App Service Environment V3.
- externalInbound string[]Ip Addresses 
- The external inbound IP addresses of the App Service Environment V3.
- id string
- The provider-assigned unique ID for this managed resource.
- inboundNetwork GetDependencies Environment V3Inbound Network Dependency[] 
- An Inbound Network Dependencies block as defined below.
- internalInbound string[]Ip Addresses 
- The internal inbound IP addresses of the App Service Environment V3.
- internalLoad stringBalancing Mode 
- The Internal Load Balancing Mode of this ASEv3.
- ipSsl numberAddress Count 
- The number of IP SSL addresses reserved for the App Service Environment V3.
- linuxOutbound string[]Ip Addresses 
- The list of Outbound IP Addresses of Linux based Apps in this App Service Environment V3.
- location string
- The location where the App Service Environment exists.
- name string
- The name of the Cluster Setting.
- pricingTier string
- Pricing tier for the front end instances.
- remoteDebugging booleanEnabled 
- resourceGroup stringName 
- subnetId string
- The ID of the v3 App Service Environment Subnet.
- {[key: string]: string}
- A mapping of tags assigned to the v3 App Service Environment.
- windowsOutbound string[]Ip Addresses 
- Outbound addresses of Windows based Apps in this App Service Environment V3.
- zoneRedundant boolean
- allow_new_ boolprivate_ endpoint_ connections 
- Are new Private Endpoint Connections allowed.
- cluster_settings Sequence[GetEnvironment V3Cluster Setting] 
- A cluster_settingblock as defined below.
- dedicated_host_ intcount 
- The number of Dedicated Hosts used by this ASEv3.
- dns_suffix str
- the DNS suffix for this App Service Environment V3.
- external_inbound_ Sequence[str]ip_ addresses 
- The external inbound IP addresses of the App Service Environment V3.
- id str
- The provider-assigned unique ID for this managed resource.
- inbound_network_ Sequence[Getdependencies Environment V3Inbound Network Dependency] 
- An Inbound Network Dependencies block as defined below.
- internal_inbound_ Sequence[str]ip_ addresses 
- The internal inbound IP addresses of the App Service Environment V3.
- internal_load_ strbalancing_ mode 
- The Internal Load Balancing Mode of this ASEv3.
- ip_ssl_ intaddress_ count 
- The number of IP SSL addresses reserved for the App Service Environment V3.
- linux_outbound_ Sequence[str]ip_ addresses 
- The list of Outbound IP Addresses of Linux based Apps in this App Service Environment V3.
- location str
- The location where the App Service Environment exists.
- name str
- The name of the Cluster Setting.
- pricing_tier str
- Pricing tier for the front end instances.
- remote_debugging_ boolenabled 
- resource_group_ strname 
- subnet_id str
- The ID of the v3 App Service Environment Subnet.
- Mapping[str, str]
- A mapping of tags assigned to the v3 App Service Environment.
- windows_outbound_ Sequence[str]ip_ addresses 
- Outbound addresses of Windows based Apps in this App Service Environment V3.
- zone_redundant bool
- allowNew BooleanPrivate Endpoint Connections 
- Are new Private Endpoint Connections allowed.
- clusterSettings List<Property Map>
- A cluster_settingblock as defined below.
- dedicatedHost NumberCount 
- The number of Dedicated Hosts used by this ASEv3.
- dnsSuffix String
- the DNS suffix for this App Service Environment V3.
- externalInbound List<String>Ip Addresses 
- The external inbound IP addresses of the App Service Environment V3.
- id String
- The provider-assigned unique ID for this managed resource.
- inboundNetwork List<Property Map>Dependencies 
- An Inbound Network Dependencies block as defined below.
- internalInbound List<String>Ip Addresses 
- The internal inbound IP addresses of the App Service Environment V3.
- internalLoad StringBalancing Mode 
- The Internal Load Balancing Mode of this ASEv3.
- ipSsl NumberAddress Count 
- The number of IP SSL addresses reserved for the App Service Environment V3.
- linuxOutbound List<String>Ip Addresses 
- The list of Outbound IP Addresses of Linux based Apps in this App Service Environment V3.
- location String
- The location where the App Service Environment exists.
- name String
- The name of the Cluster Setting.
- pricingTier String
- Pricing tier for the front end instances.
- remoteDebugging BooleanEnabled 
- resourceGroup StringName 
- subnetId String
- The ID of the v3 App Service Environment Subnet.
- Map<String>
- A mapping of tags assigned to the v3 App Service Environment.
- windowsOutbound List<String>Ip Addresses 
- Outbound addresses of Windows based Apps in this App Service Environment V3.
- zoneRedundant Boolean
Supporting Types
GetEnvironmentV3ClusterSetting   
GetEnvironmentV3InboundNetworkDependency    
- Description string
- A short description of the purpose of the network traffic.
- IpAddresses List<string>
- A list of IP addresses that network traffic will originate from in CIDR notation.
- Ports List<string>
- The ports that network traffic will arrive to the App Service Environment V3 on.
- Description string
- A short description of the purpose of the network traffic.
- IpAddresses []string
- A list of IP addresses that network traffic will originate from in CIDR notation.
- Ports []string
- The ports that network traffic will arrive to the App Service Environment V3 on.
- description String
- A short description of the purpose of the network traffic.
- ipAddresses List<String>
- A list of IP addresses that network traffic will originate from in CIDR notation.
- ports List<String>
- The ports that network traffic will arrive to the App Service Environment V3 on.
- description string
- A short description of the purpose of the network traffic.
- ipAddresses string[]
- A list of IP addresses that network traffic will originate from in CIDR notation.
- ports string[]
- The ports that network traffic will arrive to the App Service Environment V3 on.
- description str
- A short description of the purpose of the network traffic.
- ip_addresses Sequence[str]
- A list of IP addresses that network traffic will originate from in CIDR notation.
- ports Sequence[str]
- The ports that network traffic will arrive to the App Service Environment V3 on.
- description String
- A short description of the purpose of the network traffic.
- ipAddresses List<String>
- A list of IP addresses that network traffic will originate from in CIDR notation.
- ports List<String>
- The ports that network traffic will arrive to the App Service Environment V3 on.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.