Service Plan Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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)