get Service Plan
Use this data source to access information about an existing Service Plan.
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.GetServicePlanArgs;
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.getServicePlan(GetServicePlanArgs.builder()
.name("existing")
.resourceGroupName("existing")
.build());
ctx.export("id", example.applyValue(getServicePlanResult -> getServicePlanResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getServicePlan.
Parameters
argument
A collection of arguments for invoking getServicePlan.
Return
A collection of values returned by getServicePlan.
See also
Parameters
name
The name of this Service Plan.
resource Group Name
The name of the Resource Group where the Service Plan exists.
suspend fun getServicePlan(argument: suspend GetServicePlanPlainArgsBuilder.() -> Unit): GetServicePlanResult
Return
A collection of values returned by getServicePlan.
See also
Parameters
argument
Builder for com.pulumi.azure.appservice.kotlin.inputs.GetServicePlanPlainArgs.