get App Service Plan
Use this data source to access information about an existing App Service Plan (formerly known as a Server Farm
). !>Note: The azure.appservice.Plan
data source is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the azure.appservice.ServicePlan
data source instead.
Example Usage
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.GetAppServicePlanArgs;
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.getAppServicePlan(GetAppServicePlanArgs.builder()
.name("search-app-service-plan")
.resourceGroupName("search-service")
.build());
ctx.export("appServicePlanId", example.applyValue(getAppServicePlanResult -> getAppServicePlanResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getAppServicePlan.
Parameters
argument
A collection of arguments for invoking getAppServicePlan.
Return
A collection of values returned by getAppServicePlan.
See also
Parameters
name
The name of the App Service Plan.
resource Group Name
The Name of the Resource Group where the App Service Plan exists.
suspend fun getAppServicePlan(argument: suspend GetAppServicePlanPlainArgsBuilder.() -> Unit): GetAppServicePlanResult
Return
A collection of values returned by getAppServicePlan.
See also
Parameters
argument
Builder for com.pulumi.azure.appservice.kotlin.inputs.GetAppServicePlanPlainArgs.