ServicePlanArgs

data class ServicePlanArgs(val appServiceEnvironmentId: Output<String>? = null, val location: Output<String>? = null, val maximumElasticWorkerCount: Output<Int>? = null, val name: Output<String>? = null, val osType: Output<String>? = null, val perSiteScalingEnabled: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val skuName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val workerCount: Output<Int>? = null, val zoneBalancingEnabled: Output<Boolean>? = null) : ConvertibleToJava<ServicePlanArgs>

Manages an App Service: Service Plan.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appservice.ServicePlan;
import com.pulumi.azure.appservice.ServicePlanArgs;
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) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleServicePlan = new ServicePlan("exampleServicePlan", ServicePlanArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.osType("Linux")
.skuName("P1v2")
.build());
}
}

Import

AppServices can be imported using the resource id, e.g.

$ pulumi import azure:appservice/servicePlan:ServicePlan example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/farm1

Constructors

Link copied to clipboard
fun ServicePlanArgs(appServiceEnvironmentId: Output<String>? = null, location: Output<String>? = null, maximumElasticWorkerCount: Output<Int>? = null, name: Output<String>? = null, osType: Output<String>? = null, perSiteScalingEnabled: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, skuName: Output<String>? = null, tags: Output<Map<String, String>>? = null, workerCount: Output<Int>? = null, zoneBalancingEnabled: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ServicePlanArgs

Properties

Link copied to clipboard
val appServiceEnvironmentId: Output<String>? = null

The ID of the App Service Environment to create this Service Plan in.

Link copied to clipboard
val location: Output<String>? = null

The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.

Link copied to clipboard
val maximumElasticWorkerCount: Output<Int>? = null

The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Service Plan. Changing this forces a new AppService to be created.

Link copied to clipboard
val osType: Output<String>? = null

The O/S type for the App Services to be hosted in this plan. Possible values include Windows, Linux, and WindowsContainer. Changing this forces a new resource to be created.

Link copied to clipboard
val perSiteScalingEnabled: Output<Boolean>? = null

Should Per Site Scaling be enabled. Defaults to false.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.

Link copied to clipboard
val skuName: Output<String>? = null

The SKU for the plan. Possible values include B1, B2, B3, D1, F1, I1, I2, I3, I1v2, I2v2, I3v2, I4v2, I5v2, I6v2, P1v2, P2v2, P3v2, P0v3, P1v3, P2v3, P3v3, P1mv3, P2mv3, P3mv3, P4mv3, P5mv3, S1, S2, S3, SHARED, EP1, EP2, EP3, WS1, WS2, WS3, and Y1.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the AppService.

Link copied to clipboard
val workerCount: Output<Int>? = null

The number of Workers (instances) to be allocated.

Link copied to clipboard
val zoneBalancingEnabled: Output<Boolean>? = null

Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.