GetAppServicePlan
Use this data source to access information about an existing App Service Plan (formerly known as a Server Farm).
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.AppService.GetAppServicePlan.InvokeAsync(new Azure.AppService.GetAppServicePlanArgs
{
Name = "search-app-service-plan",
ResourceGroupName = "search-service",
}));
this.AppServicePlanId = example.Apply(example => example.Id);
}
[Output("appServicePlanId")]
public Output<string> AppServicePlanId { 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 {
example, err := appservice.GetAppServicePlan(ctx, &appservice.GetAppServicePlanArgs{
Name: "search-app-service-plan",
ResourceGroupName: "search-service",
}, nil)
if err != nil {
return err
}
ctx.Export("appServicePlanId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.appservice.get_app_service_plan(name="search-app-service-plan",
resource_group_name="search-service")
pulumi.export("appServicePlanId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getAppServicePlan({
name: "search-app-service-plan",
resourceGroupName: "search-service",
});
export const appServicePlanId = example.then(example => example.id);Using GetAppServicePlan
function getAppServicePlan(args: GetAppServicePlanArgs, opts?: InvokeOptions): Promise<GetAppServicePlanResult>function get_app_service_plan(name=None, resource_group_name=None, opts=None)func GetAppServicePlan(ctx *Context, args *GetAppServicePlanArgs, opts ...InvokeOption) (*GetAppServicePlanResult, error)public static class GetAppServicePlan {
public static Task<GetAppServicePlanResult> InvokeAsync(GetAppServicePlanArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the App Service Plan.
- Resource
Group stringName The Name of the Resource Group where the App Service Plan exists.
- Name string
The name of the App Service Plan.
- Resource
Group stringName The Name of the Resource Group where the App Service Plan exists.
- name string
The name of the App Service Plan.
- resource
Group stringName The Name of the Resource Group where the App Service Plan exists.
- name str
The name of the App Service Plan.
- resource_
group_ strname The Name of the Resource Group where the App Service Plan exists.
GetAppServicePlan Result
The following output properties are available:
- App
Service stringEnvironment Id The ID of the App Service Environment where the App Service Plan is located.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Xenon bool A flag that indicates if it’s a xenon plan (support for Windows Container)
- Kind string
The Operating System type of the App Service Plan
- Location string
The Azure location where the App Service Plan exists
- Maximum
Elastic intWorker Count The maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
- Maximum
Number intOf Workers The maximum number of workers supported with the App Service Plan’s sku.
- Name string
- Per
Site boolScaling Can Apps assigned to this App Service Plan be scaled independently?
- Reserved bool
Is this App Service Plan
Reserved?- Resource
Group stringName - Sku
Get
App Service Plan Sku A
skublock as documented below.- Dictionary<string, string>
A mapping of tags assigned to the resource.
- App
Service stringEnvironment Id The ID of the App Service Environment where the App Service Plan is located.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Xenon bool A flag that indicates if it’s a xenon plan (support for Windows Container)
- Kind string
The Operating System type of the App Service Plan
- Location string
The Azure location where the App Service Plan exists
- Maximum
Elastic intWorker Count The maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
- Maximum
Number intOf Workers The maximum number of workers supported with the App Service Plan’s sku.
- Name string
- Per
Site boolScaling Can Apps assigned to this App Service Plan be scaled independently?
- Reserved bool
Is this App Service Plan
Reserved?- Resource
Group stringName - Sku
Get
App Service Plan Sku A
skublock as documented below.- map[string]string
A mapping of tags assigned to the resource.
- app
Service stringEnvironment Id The ID of the App Service Environment where the App Service Plan is located.
- id string
The provider-assigned unique ID for this managed resource.
- is
Xenon boolean A flag that indicates if it’s a xenon plan (support for Windows Container)
- kind string
The Operating System type of the App Service Plan
- location string
The Azure location where the App Service Plan exists
- maximum
Elastic numberWorker Count The maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
- maximum
Number numberOf Workers The maximum number of workers supported with the App Service Plan’s sku.
- name string
- per
Site booleanScaling Can Apps assigned to this App Service Plan be scaled independently?
- reserved boolean
Is this App Service Plan
Reserved?- resource
Group stringName - sku
Get
App Service Plan Sku A
skublock as documented below.- {[key: string]: string}
A mapping of tags assigned to the resource.
- app_
service_ strenvironment_ id The ID of the App Service Environment where the App Service Plan is located.
- id str
The provider-assigned unique ID for this managed resource.
- is_
xenon bool A flag that indicates if it’s a xenon plan (support for Windows Container)
- kind str
The Operating System type of the App Service Plan
- location str
The Azure location where the App Service Plan exists
- maximum_
elastic_ floatworker_ count The maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
- maximum_
number_ floatof_ workers The maximum number of workers supported with the App Service Plan’s sku.
- name str
- per_
site_ boolscaling Can Apps assigned to this App Service Plan be scaled independently?
- reserved bool
Is this App Service Plan
Reserved?- resource_
group_ strname - sku
Dict[Get
App Service Plan Sku] A
skublock as documented below.- Dict[str, str]
A mapping of tags assigned to the resource.
Supporting Types
GetAppServicePlanSku
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.