GetAppServiceEnvironment

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 = "example-ase",
            ResourceGroupName = "example-rg",
        }));
        this.AppServiceEnvironmentId = data.Azurerm_app_service_environment.Id;
    }

    [Output("appServiceEnvironmentId")]
    public Output<string> AppServiceEnvironmentId { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appservice"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := appservice.GetAppServiceEnvironment(ctx, &appservice.GetAppServiceEnvironmentArgs{
            Name:              "example-ase",
            ResourceGroupName: "example-rg",
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("appServiceEnvironmentId", data.Azurerm_app_service_environment.Id)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.appservice.get_app_service_environment(name="example-ase",
    resource_group_name="example-rg")
pulumi.export("appServiceEnvironmentId", data["azurerm_app_service_environment"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.appservice.getAppServiceEnvironment({
    name: "example-ase",
    resourceGroupName: "example-rg",
});
export const appServiceEnvironmentId = data.azurerm_app_service_environment.id;

Using GetAppServiceEnvironment

function getAppServiceEnvironment(args: GetAppServiceEnvironmentArgs, opts?: InvokeOptions): Promise<GetAppServiceEnvironmentResult>
function  get_app_service_environment(name=None, resource_group_name=None, opts=None)
func GetAppServiceEnvironment(ctx *Context, args *GetAppServiceEnvironmentArgs, opts ...InvokeOption) (*GetAppServiceEnvironmentResult, error)
public static class GetAppServiceEnvironment {
    public static Task<GetAppServiceEnvironmentResult> InvokeAsync(GetAppServiceEnvironmentArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the App Service Environment.

ResourceGroupName string

The Name of the Resource Group where the App Service Environment exists.

Name string

The name of the App Service Environment.

ResourceGroupName string

The Name of the Resource Group where the App Service Environment exists.

name string

The name of the App Service Environment.

resourceGroupName string

The Name of the Resource Group where the App Service Environment exists.

name str

The name of the App Service Environment.

resource_group_name str

The Name of the Resource Group where the App Service Environment exists.

GetAppServiceEnvironment Result

The following output properties are available:

FrontEndScaleFactor int

The number of app instances per App Service Environment Front End

Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure location where the App Service Environment exists

Name string
PricingTier string

The Pricing Tier (Isolated SKU) of the App Service Environment.

ResourceGroupName string
Tags Dictionary<string, string>

A mapping of tags assigned to the resource.

FrontEndScaleFactor int

The number of app instances per App Service Environment Front End

Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure location where the App Service Environment exists

Name string
PricingTier string

The Pricing Tier (Isolated SKU) of the App Service Environment.

ResourceGroupName string
Tags map[string]string

A mapping of tags assigned to the resource.

frontEndScaleFactor number

The number of app instances per App Service Environment Front End

id string

The provider-assigned unique ID for this managed resource.

location string

The Azure location where the App Service Environment exists

name string
pricingTier string

The Pricing Tier (Isolated SKU) of the App Service Environment.

resourceGroupName string
tags {[key: string]: string}

A mapping of tags assigned to the resource.

front_end_scale_factor float

The number of app instances per App Service Environment Front End

id str

The provider-assigned unique ID for this managed resource.

location str

The Azure location where the App Service Environment exists

name str
pricing_tier str

The Pricing Tier (Isolated SKU) of the App Service Environment.

resource_group_name str
tags Dict[str, str]

A mapping of tags assigned to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.