App Service Plan Args
data class AppServicePlanArgs(val elasticScaleEnabled: Output<Boolean>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val freeOfferExpirationTime: Output<String>? = null, val hostingEnvironmentProfile: Output<HostingEnvironmentProfileArgs>? = null, val hyperV: Output<Boolean>? = null, val isSpot: Output<Boolean>? = null, val isXenon: Output<Boolean>? = null, val kind: Output<String>? = null, val kubeEnvironmentProfile: Output<KubeEnvironmentProfileArgs>? = null, val location: Output<String>? = null, val maximumElasticWorkerCount: Output<Int>? = null, val name: Output<String>? = null, val perSiteScaling: Output<Boolean>? = null, val reserved: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuDescriptionArgs>? = null, val spotExpirationTime: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val targetWorkerCount: Output<Int>? = null, val targetWorkerSizeId: Output<Int>? = null, val workerTierName: Output<String>? = null, val zoneRedundant: Output<Boolean>? = null) : ConvertibleToJava<AppServicePlanArgs>
App Service plan. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-12-01. Other available API versions: 2016-09-01, 2020-10-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",
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/web/v2"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:web:AppServicePlan testsf6141 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}
Content copied to clipboard
Constructors
Link copied to clipboard
fun AppServicePlanArgs(elasticScaleEnabled: Output<Boolean>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, freeOfferExpirationTime: Output<String>? = null, hostingEnvironmentProfile: Output<HostingEnvironmentProfileArgs>? = null, hyperV: Output<Boolean>? = null, isSpot: Output<Boolean>? = null, isXenon: Output<Boolean>? = null, kind: Output<String>? = null, kubeEnvironmentProfile: Output<KubeEnvironmentProfileArgs>? = null, location: Output<String>? = null, maximumElasticWorkerCount: Output<Int>? = null, name: Output<String>? = null, perSiteScaling: Output<Boolean>? = null, reserved: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuDescriptionArgs>? = null, spotExpirationTime: Output<String>? = null, tags: Output<Map<String, String>>? = null, targetWorkerCount: Output<Int>? = null, targetWorkerSizeId: Output<Int>? = null, workerTierName: Output<String>? = null, zoneRedundant: Output<Boolean>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard