We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Use this data source to access information about an existing App Service Environment.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.AppService.GetAppServiceEnvironment.InvokeAsync(new Azure.AppService.GetAppServiceEnvironmentArgs
{
Name = "existing-ase",
ResourceGroupName = "existing-rg",
}));
this.Id = example.Apply(example => example.Id);
}
[Output("id")]
public Output<string> Id { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/appservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := appservice.GetAppServiceEnvironment(ctx, &appservice.GetAppServiceEnvironmentArgs{
Name: "existing-ase",
ResourceGroupName: "existing-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getAppServiceEnvironment({
name: "existing-ase",
resourceGroupName: "existing-rg",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.appservice.get_app_service_environment(name="existing-ase",
resource_group_name="existing-rg")
pulumi.export("id", example.id)
Example coming soon!
Using getAppServiceEnvironment
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 getAppServiceEnvironment(args: GetAppServiceEnvironmentArgs, opts?: InvokeOptions): Promise<GetAppServiceEnvironmentResult>
function getAppServiceEnvironmentOutput(args: GetAppServiceEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetAppServiceEnvironmentResult>def get_app_service_environment(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppServiceEnvironmentResult
def get_app_service_environment_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppServiceEnvironmentResult]func GetAppServiceEnvironment(ctx *Context, args *GetAppServiceEnvironmentArgs, opts ...InvokeOption) (*GetAppServiceEnvironmentResult, error)
func GetAppServiceEnvironmentOutput(ctx *Context, args *GetAppServiceEnvironmentOutputArgs, opts ...InvokeOption) GetAppServiceEnvironmentResultOutput> Note: This function is named GetAppServiceEnvironment in the Go SDK.
public static class GetAppServiceEnvironment
{
public static Task<GetAppServiceEnvironmentResult> InvokeAsync(GetAppServiceEnvironmentArgs args, InvokeOptions? opts = null)
public static Output<GetAppServiceEnvironmentResult> Invoke(GetAppServiceEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAppServiceEnvironmentResult> getAppServiceEnvironment(GetAppServiceEnvironmentArgs args, InvokeOptions options)
public static Output<GetAppServiceEnvironmentResult> getAppServiceEnvironment(GetAppServiceEnvironmentArgs args, InvokeOptions options)
fn::invoke:
function: azure:appservice/getAppServiceEnvironment:getAppServiceEnvironment
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of this App Service Environment.
- Resource
Group stringName - The name of the Resource Group where the App Service Environment exists.
- Name string
- The name of this App Service Environment.
- Resource
Group stringName - The name of the Resource Group where the App Service Environment exists.
- name String
- The name of this App Service Environment.
- resource
Group StringName - The name of the Resource Group where the App Service Environment exists.
- name string
- The name of this App Service Environment.
- resource
Group stringName - The name of the Resource Group where the App Service Environment exists.
- name str
- The name of this App Service Environment.
- resource_
group_ strname - The name of the Resource Group where the App Service Environment exists.
- name String
- The name of this App Service Environment.
- resource
Group StringName - The name of the Resource Group where the App Service Environment exists.
getAppServiceEnvironment Result
The following output properties are available:
- Cluster
Settings List<GetApp Service Environment Cluster Setting> - Zero or more
cluster_settingblocks as defined below. - Front
End intScale Factor - The number of app instances per App Service Environment Front End.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Ip stringAddress - IP address of internal load balancer of the App Service Environment.
- Location string
- The Azure Region where the App Service Environment exists.
- Name string
- The name of the Cluster Setting.
- Outbound
Ip List<string>Addresses - List of outbound IP addresses of the App Service Environment.
- Pricing
Tier string - The Pricing Tier (Isolated SKU) of the App Service Environment.
- Resource
Group stringName - Service
Ip stringAddress - IP address of service endpoint of the App Service Environment.
- Dictionary<string, string>
- A mapping of tags assigned to the App Service Environment.
- Cluster
Settings []GetApp Service Environment Cluster Setting - Zero or more
cluster_settingblocks as defined below. - Front
End intScale Factor - The number of app instances per App Service Environment Front End.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Ip stringAddress - IP address of internal load balancer of the App Service Environment.
- Location string
- The Azure Region where the App Service Environment exists.
- Name string
- The name of the Cluster Setting.
- Outbound
Ip []stringAddresses - List of outbound IP addresses of the App Service Environment.
- Pricing
Tier string - The Pricing Tier (Isolated SKU) of the App Service Environment.
- Resource
Group stringName - Service
Ip stringAddress - IP address of service endpoint of the App Service Environment.
- map[string]string
- A mapping of tags assigned to the App Service Environment.
- cluster
Settings List<GetApp Service Environment Cluster Setting> - Zero or more
cluster_settingblocks as defined below. - front
End IntegerScale Factor - The number of app instances per App Service Environment Front End.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Ip StringAddress - IP address of internal load balancer of the App Service Environment.
- location String
- The Azure Region where the App Service Environment exists.
- name String
- The name of the Cluster Setting.
- outbound
Ip List<String>Addresses - List of outbound IP addresses of the App Service Environment.
- pricing
Tier String - The Pricing Tier (Isolated SKU) of the App Service Environment.
- resource
Group StringName - service
Ip StringAddress - IP address of service endpoint of the App Service Environment.
- Map<String,String>
- A mapping of tags assigned to the App Service Environment.
- cluster
Settings GetApp Service Environment Cluster Setting[] - Zero or more
cluster_settingblocks as defined below. - front
End numberScale Factor - The number of app instances per App Service Environment Front End.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Ip stringAddress - IP address of internal load balancer of the App Service Environment.
- location string
- The Azure Region where the App Service Environment exists.
- name string
- The name of the Cluster Setting.
- outbound
Ip string[]Addresses - List of outbound IP addresses of the App Service Environment.
- pricing
Tier string - The Pricing Tier (Isolated SKU) of the App Service Environment.
- resource
Group stringName - service
Ip stringAddress - IP address of service endpoint of the App Service Environment.
- {[key: string]: string}
- A mapping of tags assigned to the App Service Environment.
- cluster_
settings Sequence[GetApp Service Environment Cluster Setting] - Zero or more
cluster_settingblocks as defined below. - front_
end_ intscale_ factor - The number of app instances per App Service Environment Front End.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
ip_ straddress - IP address of internal load balancer of the App Service Environment.
- location str
- The Azure Region where the App Service Environment exists.
- name str
- The name of the Cluster Setting.
- outbound_
ip_ Sequence[str]addresses - List of outbound IP addresses of the App Service Environment.
- pricing_
tier str - The Pricing Tier (Isolated SKU) of the App Service Environment.
- resource_
group_ strname - service_
ip_ straddress - IP address of service endpoint of the App Service Environment.
- Mapping[str, str]
- A mapping of tags assigned to the App Service Environment.
- cluster
Settings List<Property Map> - Zero or more
cluster_settingblocks as defined below. - front
End NumberScale Factor - The number of app instances per App Service Environment Front End.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Ip StringAddress - IP address of internal load balancer of the App Service Environment.
- location String
- The Azure Region where the App Service Environment exists.
- name String
- The name of the Cluster Setting.
- outbound
Ip List<String>Addresses - List of outbound IP addresses of the App Service Environment.
- pricing
Tier String - The Pricing Tier (Isolated SKU) of the App Service Environment.
- resource
Group StringName - service
Ip StringAddress - IP address of service endpoint of the App Service Environment.
- Map<String>
- A mapping of tags assigned to the App Service Environment.
Supporting Types
GetAppServiceEnvironmentClusterSetting
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
