Class GetAppServicePlan
Inheritance
System.Object
GetAppServicePlan
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public static class GetAppServicePlan
Methods
View SourceInvokeAsync(GetAppServicePlanArgs, InvokeOptions)
Use this data source to access information about an existing App Service Plan (formerly known as a Server Farm).
{{% examples %}}
Example Usage
{{% example %}}
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; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetAppServicePlanResult> InvokeAsync(GetAppServicePlanArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAppServicePlanArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetAppServicePlanResult> |