Partager via


AppServicePlan Class

Definition

App Service plan.

[Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotFormat]
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanTypeConverter))]
public class AppServicePlan : Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IHeaderSerializable, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IValidates
[<Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotFormat>]
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanTypeConverter))>]
type AppServicePlan = class
    interface IAppServicePlan
    interface IJsonSerializable
    interface IResource
    interface IValidates
    interface IHeaderSerializable
Public Class AppServicePlan
Implements IAppServicePlan, IHeaderSerializable, IValidates
Inheritance
AppServicePlan
Attributes
Implements

Constructors

AppServicePlan()

Creates an new AppServicePlan instance.

Properties

Capacity

Current number of instances assigned to the resource.

ElasticScaleEnabled

ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku

ExtendedLocationName

Name of extended location.

ExtendedLocationType

Type of extended location.

FreeOfferExpirationTime

The time when the server farm free offer expires.

GeoRegion

Geographical location for the App Service plan.

HostingEnvironmentProfileId

Resource ID of the App Service Environment.

HostingEnvironmentProfileName

Name of the App Service Environment.

HostingEnvironmentProfileType

Resource type of the App Service Environment.

HyperV

If Hyper-V container app service plan true, false otherwise.

Id

Resource Id.

IsSpot

If true, this App Service Plan owns spot instances.

IsXenon

Obsolete: If Hyper-V container app service plan true, false otherwise.

Kind

Kind of resource.

KubeEnvironmentProfileId

Resource ID of the Kubernetes Environment.

KubeEnvironmentProfileName

Name of the Kubernetes Environment.

KubeEnvironmentProfileType

Resource type of the Kubernetes Environment.

Location

Resource Location.

MaximumElasticWorkerCount

Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan

MaximumNumberOfWorker

Maximum number of instances that can be assigned to this App Service plan.

Name

Resource Name.

NumberOfSite

Number of apps assigned to this App Service plan.

NumberOfWorker

The number of instances that are assigned to this App Service plan.

PerSiteScaling

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.

ProvisioningState

Provisioning state of the App Service Plan.

Reserved

If Linux app service plan true, false otherwise.

ResourceGroup

Resource group of the App Service plan.

SkuCapability

Capabilities of the SKU, e.g., is traffic manager enabled?

SkuCapacityDefault

Default number of workers for this App Service plan SKU.

SkuCapacityElasticMaximum

Maximum number of Elastic workers for this App Service plan SKU.

SkuCapacityMaximum

Maximum number of workers for this App Service plan SKU.

SkuCapacityMinimum

Minimum number of workers for this App Service plan SKU.

SkuCapacityScaleType

Available scale configurations for an App Service plan.

SkuFamily

Family code of the resource SKU.

SkuLocation

Locations of the SKU.

SkuName

Name of the resource SKU.

SkuSize

Size specifier of the resource SKU.

SkuTier

Service tier of the resource SKU.

SpotExpirationTime

The time when the server farm expires. Valid only if it is a spot server farm.

Status

App Service plan status.

Subscription

App Service plan subscription.

Tag

Resource tags.

TargetWorkerCount

Scaling worker count.

TargetWorkerSizeId

Scaling worker size ID.

Type

Resource type.

WorkerTierName

Target worker tier assigned to the App Service plan.

WorkerType

The Service plan worker type.

ZoneRedundant

If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of AppServicePlan.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of AppServicePlan.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan.

FromJsonString(String)

Creates a new instance of AppServicePlan, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of AppServicePlan into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Explicit Interface Implementations

IHeaderSerializable.ReadHeaders(HttpResponseHeaders)

Applies to