We recommend using Azure Native.
azure.appservice.getAppServiceEnvironment
Explore with Pulumi AI
Use this data source to access information about an existing App Service Environment.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.AppService.GetAppServiceEnvironment.Invoke(new()
{
Name = "existing-ase",
ResourceGroupName = "existing-rg",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getAppServiceEnvironmentResult => getAppServiceEnvironmentResult.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/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
})
}
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.GetAppServiceEnvironmentArgs;
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.getAppServiceEnvironment(GetAppServiceEnvironmentArgs.builder()
.name("existing-ase")
.resourceGroupName("existing-rg")
.build());
ctx.export("id", example.applyValue(getAppServiceEnvironmentResult -> getAppServiceEnvironmentResult.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)
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);
variables:
example:
fn::invoke:
Function: azure:appservice:getAppServiceEnvironment
Arguments:
name: existing-ase
resourceGroupName: existing-rg
outputs:
id: ${example.id}
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:appservice/getAppServiceEnvironment:getAppServiceEnvironment
arguments:
# arguments dictionary
The 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_setting
blocks 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_setting
blocks 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_setting
blocks 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_setting
blocks 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_setting
blocks 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_setting
blocks 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
azurerm
Terraform Provider.