App Service Plan Args
App Service plan. API Version: 2020-12-01.
Example Usage
Create Or Update App Service plan
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var appServicePlan = new AzureNative.Web.AppServicePlan("appServicePlan", new()
{
Kind = "app",
Location = "East US",
Name = "testsf6141",
ResourceGroupName = "testrg123",
Sku = new AzureNative.Web.Inputs.SkuDescriptionArgs
{
Capacity = 1,
Family = "P",
Name = "P1",
Size = "P1",
Tier = "Premium",
},
});
});
package main
import (
web "github.com/pulumi/pulumi-azure-native-sdk/web"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := web.NewAppServicePlan(ctx, "appServicePlan", &web.AppServicePlanArgs{
Kind: pulumi.String("app"),
Location: pulumi.String("East US"),
Name: pulumi.String("testsf6141"),
ResourceGroupName: pulumi.String("testrg123"),
Sku: &web.SkuDescriptionArgs{
Capacity: pulumi.Int(1),
Family: pulumi.String("P"),
Name: pulumi.String("P1"),
Size: pulumi.String("P1"),
Tier: pulumi.String("Premium"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.web.AppServicePlan;
import com.pulumi.azurenative.web.AppServicePlanArgs;
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 appServicePlan = new AppServicePlan("appServicePlan", AppServicePlanArgs.builder()
.kind("app")
.location("East US")
.name("testsf6141")
.resourceGroupName("testrg123")
.sku(Map.ofEntries(
Map.entry("capacity", 1),
Map.entry("family", "P"),
Map.entry("name", "P1"),
Map.entry("size", "P1"),
Map.entry("tier", "Premium")
))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:web:AppServicePlan testsf6141 /subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141
Constructors
Properties
The time when the server farm free offer expires.
Specification for the App Service Environment to use for the App Service plan.
Specification for the Kubernetes Environment to use for the App Service plan.
Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan
If true
, apps assigned to this App Service plan can be scaled independently. If false
, apps assigned to this App Service plan will scale to all instances of the plan.
Name of the resource group to which the resource belongs.
Description of a SKU for a scalable resource.
The time when the server farm expires. Valid only if it is a spot server farm.
Scaling worker count.
Scaling worker size ID.
Target worker tier assigned to the App Service plan.