azure.appservice.ServicePlan
Manages an App Service: Service Plan.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleServicePlan = new Azure.AppService.ServicePlan("exampleServicePlan", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
OsType = "Linux",
SkuName = "P1v2",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = appservice.NewServicePlan(ctx, "exampleServicePlan", &appservice.ServicePlanArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
OsType: pulumi.String("Linux"),
SkuName: pulumi.String("P1v2"),
})
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.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 pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_service_plan = azure.appservice.ServicePlan("exampleServicePlan",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
os_type="Linux",
sku_name="P1v2")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleServicePlan = new azure.appservice.ServicePlan("exampleServicePlan", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
osType: "Linux",
skuName: "P1v2",
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleServicePlan:
type: azure:appservice:ServicePlan
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
osType: Linux
skuName: P1v2
Create ServicePlan Resource
new ServicePlan(name: string, args: ServicePlanArgs, opts?: CustomResourceOptions);
@overload
def ServicePlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_service_environment_id: Optional[str] = None,
location: Optional[str] = None,
maximum_elastic_worker_count: Optional[int] = None,
name: Optional[str] = None,
os_type: Optional[str] = None,
per_site_scaling_enabled: Optional[bool] = None,
resource_group_name: Optional[str] = None,
sku_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
worker_count: Optional[int] = None,
zone_balancing_enabled: Optional[bool] = None)
@overload
def ServicePlan(resource_name: str,
args: ServicePlanArgs,
opts: Optional[ResourceOptions] = None)
func NewServicePlan(ctx *Context, name string, args ServicePlanArgs, opts ...ResourceOption) (*ServicePlan, error)
public ServicePlan(string name, ServicePlanArgs args, CustomResourceOptions? opts = null)
public ServicePlan(String name, ServicePlanArgs args)
public ServicePlan(String name, ServicePlanArgs args, CustomResourceOptions options)
type: azure:appservice:ServicePlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServicePlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServicePlanArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServicePlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServicePlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServicePlanArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ServicePlan Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ServicePlan resource accepts the following input properties:
- Os
Type string The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- Resource
Group stringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- Sku
Name string The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- App
Service stringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- Location string
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- Maximum
Elastic intWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- Name string
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- Per
Site boolScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- Dictionary<string, string>
A mapping of tags which should be assigned to the AppService.
- Worker
Count int The number of Workers (instances) to be allocated.
- Zone
Balancing boolEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- Os
Type string The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- Resource
Group stringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- Sku
Name string The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- App
Service stringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- Location string
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- Maximum
Elastic intWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- Name string
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- Per
Site boolScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- map[string]string
A mapping of tags which should be assigned to the AppService.
- Worker
Count int The number of Workers (instances) to be allocated.
- Zone
Balancing boolEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- os
Type String The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- resource
Group StringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- sku
Name String The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- app
Service StringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- location String
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- maximum
Elastic IntegerWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- name String
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- per
Site BooleanScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- Map<String,String>
A mapping of tags which should be assigned to the AppService.
- worker
Count Integer The number of Workers (instances) to be allocated.
- zone
Balancing BooleanEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- os
Type string The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- resource
Group stringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- sku
Name string The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- app
Service stringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- location string
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- maximum
Elastic numberWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- name string
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- per
Site booleanScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- {[key: string]: string}
A mapping of tags which should be assigned to the AppService.
- worker
Count number The number of Workers (instances) to be allocated.
- zone
Balancing booleanEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- os_
type str The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- resource_
group_ strname The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- sku_
name str The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- app_
service_ strenvironment_ id The ID of the App Service Environment to create this Service Plan in.
- location str
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- maximum_
elastic_ intworker_ count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- name str
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- per_
site_ boolscaling_ enabled Should Per Site Scaling be enabled. Defaults to
false
.- Mapping[str, str]
A mapping of tags which should be assigned to the AppService.
- worker_
count int The number of Workers (instances) to be allocated.
- zone_
balancing_ boolenabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- os
Type String The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- resource
Group StringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- sku
Name String The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- app
Service StringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- location String
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- maximum
Elastic NumberWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- name String
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- per
Site BooleanScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- Map<String>
A mapping of tags which should be assigned to the AppService.
- worker
Count Number The number of Workers (instances) to be allocated.
- zone
Balancing BooleanEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServicePlan resource produces the following output properties:
Look up Existing ServicePlan Resource
Get an existing ServicePlan resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServicePlanState, opts?: CustomResourceOptions): ServicePlan
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_service_environment_id: Optional[str] = None,
kind: Optional[str] = None,
location: Optional[str] = None,
maximum_elastic_worker_count: Optional[int] = None,
name: Optional[str] = None,
os_type: Optional[str] = None,
per_site_scaling_enabled: Optional[bool] = None,
reserved: Optional[bool] = None,
resource_group_name: Optional[str] = None,
sku_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
worker_count: Optional[int] = None,
zone_balancing_enabled: Optional[bool] = None) -> ServicePlan
func GetServicePlan(ctx *Context, name string, id IDInput, state *ServicePlanState, opts ...ResourceOption) (*ServicePlan, error)
public static ServicePlan Get(string name, Input<string> id, ServicePlanState? state, CustomResourceOptions? opts = null)
public static ServicePlan get(String name, Output<String> id, ServicePlanState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- App
Service stringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- Kind string
A string representing the Kind of Service Plan.
- Location string
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- Maximum
Elastic intWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- Name string
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- Os
Type string The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- Per
Site boolScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- Reserved bool
Whether this is a reserved Service Plan Type.
true
ifos_type
isLinux
, otherwisefalse
.- Resource
Group stringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- Sku
Name string The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- Dictionary<string, string>
A mapping of tags which should be assigned to the AppService.
- Worker
Count int The number of Workers (instances) to be allocated.
- Zone
Balancing boolEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- App
Service stringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- Kind string
A string representing the Kind of Service Plan.
- Location string
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- Maximum
Elastic intWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- Name string
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- Os
Type string The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- Per
Site boolScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- Reserved bool
Whether this is a reserved Service Plan Type.
true
ifos_type
isLinux
, otherwisefalse
.- Resource
Group stringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- Sku
Name string The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- map[string]string
A mapping of tags which should be assigned to the AppService.
- Worker
Count int The number of Workers (instances) to be allocated.
- Zone
Balancing boolEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- app
Service StringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- kind String
A string representing the Kind of Service Plan.
- location String
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- maximum
Elastic IntegerWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- name String
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- os
Type String The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- per
Site BooleanScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- reserved Boolean
Whether this is a reserved Service Plan Type.
true
ifos_type
isLinux
, otherwisefalse
.- resource
Group StringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- sku
Name String The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- Map<String,String>
A mapping of tags which should be assigned to the AppService.
- worker
Count Integer The number of Workers (instances) to be allocated.
- zone
Balancing BooleanEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- app
Service stringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- kind string
A string representing the Kind of Service Plan.
- location string
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- maximum
Elastic numberWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- name string
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- os
Type string The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- per
Site booleanScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- reserved boolean
Whether this is a reserved Service Plan Type.
true
ifos_type
isLinux
, otherwisefalse
.- resource
Group stringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- sku
Name string The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- {[key: string]: string}
A mapping of tags which should be assigned to the AppService.
- worker
Count number The number of Workers (instances) to be allocated.
- zone
Balancing booleanEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- app_
service_ strenvironment_ id The ID of the App Service Environment to create this Service Plan in.
- kind str
A string representing the Kind of Service Plan.
- location str
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- maximum_
elastic_ intworker_ count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- name str
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- os_
type str The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- per_
site_ boolscaling_ enabled Should Per Site Scaling be enabled. Defaults to
false
.- reserved bool
Whether this is a reserved Service Plan Type.
true
ifos_type
isLinux
, otherwisefalse
.- resource_
group_ strname The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- sku_
name str The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- Mapping[str, str]
A mapping of tags which should be assigned to the AppService.
- worker_
count int The number of Workers (instances) to be allocated.
- zone_
balancing_ boolenabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
- app
Service StringEnvironment Id The ID of the App Service Environment to create this Service Plan in.
- kind String
A string representing the Kind of Service Plan.
- location String
The Azure Region where the Service Plan should exist. Changing this forces a new AppService to be created.
- maximum
Elastic NumberWorker Count The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU.
- name String
The name which should be used for this Service Plan. Changing this forces a new AppService to be created.
- os
Type String The O/S type for the App Services to be hosted in this plan. Possible values include
Windows
,Linux
, andWindowsContainer
. Changing this forces a new resource to be created.- per
Site BooleanScaling Enabled Should Per Site Scaling be enabled. Defaults to
false
.- reserved Boolean
Whether this is a reserved Service Plan Type.
true
ifos_type
isLinux
, otherwisefalse
.- resource
Group StringName The name of the Resource Group where the AppService should exist. Changing this forces a new AppService to be created.
- sku
Name String The SKU for the plan. Possible values include
B1
,B2
,B3
,D1
,F1
,I1
,I2
,I3
,I1v2
,I2v2
,I3v2
,P1v2
,P2v2
,P3v2
,P1v3
,P2v3
,P3v3
,S1
,S2
,S3
,SHARED
,EP1
,EP2
,EP3
,WS1
,WS2
,WS3
, andY1
.- Map<String>
A mapping of tags which should be assigned to the AppService.
- worker
Count Number The number of Workers (instances) to be allocated.
- zone
Balancing BooleanEnabled Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created.
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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.