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.
- Resource
Group stringName The Name of the Resource Group where the App Service Environment exists.
- Name string
The name of the App Service Environment.
- Resource
Group stringName The Name of the Resource Group where the App Service Environment exists.
- name string
The name of the App Service Environment.
- resource
Group stringName The Name of the Resource Group where the App Service Environment exists.
- name str
The name of the App Service Environment.
- resource_
group_ strname The Name of the Resource Group where the App Service Environment exists.
GetAppServiceEnvironment Result
The following output properties are available:
- 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.
- Location string
The Azure location where the App Service Environment exists
- Name string
- Pricing
Tier string The Pricing Tier (Isolated SKU) of the App Service Environment.
- Resource
Group stringName - Dictionary<string, string>
A mapping of tags assigned to the resource.
- 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.
- Location string
The Azure location where the App Service Environment exists
- Name string
- Pricing
Tier string The Pricing Tier (Isolated SKU) of the App Service Environment.
- Resource
Group stringName - map[string]string
A mapping of tags assigned to the resource.
- 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.
- location string
The Azure location where the App Service Environment exists
- name string
- pricing
Tier string The Pricing Tier (Isolated SKU) of the App Service Environment.
- resource
Group stringName - {[key: string]: string}
A mapping of tags assigned to the resource.
- front_
end_ floatscale_ factor 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_ strname - 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
azurermTerraform Provider.