AppServicePlan Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AppServicePlan()
Initializes a new instance of the AppServicePlan class.
public AppServicePlan ();
Public Sub New ()
Applies to
AppServicePlan(String, String, String, String, String, IDictionary<String, String>, String, Nullable<StatusOptions>, String, HostingEnvironmentProfile, Nullable<Int32>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<DateTime>, Nullable<DateTime>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<ProvisioningState>, KubeEnvironmentProfile, Nullable<Boolean>, SkuDescription, ExtendedLocation)
Initializes a new instance of the AppServicePlan class.
public AppServicePlan (string location, string id = default, string name = default, string kind = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string workerTierName = default, Microsoft.Azure.Management.WebSites.Models.StatusOptions? status = default, string subscription = default, Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile hostingEnvironmentProfile = default, int? maximumNumberOfWorkers = default, string geoRegion = default, bool? perSiteScaling = default, bool? elasticScaleEnabled = default, int? maximumElasticWorkerCount = default, int? numberOfSites = default, bool? isSpot = default, DateTime? spotExpirationTime = default, DateTime? freeOfferExpirationTime = default, string resourceGroup = default, bool? reserved = default, bool? isXenon = default, bool? hyperV = default, int? targetWorkerCount = default, int? targetWorkerSizeId = default, Microsoft.Azure.Management.WebSites.Models.ProvisioningState? provisioningState = default, Microsoft.Azure.Management.WebSites.Models.KubeEnvironmentProfile kubeEnvironmentProfile = default, bool? zoneRedundant = default, Microsoft.Azure.Management.WebSites.Models.SkuDescription sku = default, Microsoft.Azure.Management.WebSites.Models.ExtendedLocation extendedLocation = default);
new Microsoft.Azure.Management.WebSites.Models.AppServicePlan : string * string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Nullable<Microsoft.Azure.Management.WebSites.Models.StatusOptions> * string * Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile * Nullable<int> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<DateTime> * Nullable<DateTime> * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<Microsoft.Azure.Management.WebSites.Models.ProvisioningState> * Microsoft.Azure.Management.WebSites.Models.KubeEnvironmentProfile * Nullable<bool> * Microsoft.Azure.Management.WebSites.Models.SkuDescription * Microsoft.Azure.Management.WebSites.Models.ExtendedLocation -> Microsoft.Azure.Management.WebSites.Models.AppServicePlan
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional kind As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional workerTierName As String = Nothing, Optional status As Nullable(Of StatusOptions) = Nothing, Optional subscription As String = Nothing, Optional hostingEnvironmentProfile As HostingEnvironmentProfile = Nothing, Optional maximumNumberOfWorkers As Nullable(Of Integer) = Nothing, Optional geoRegion As String = Nothing, Optional perSiteScaling As Nullable(Of Boolean) = Nothing, Optional elasticScaleEnabled As Nullable(Of Boolean) = Nothing, Optional maximumElasticWorkerCount As Nullable(Of Integer) = Nothing, Optional numberOfSites As Nullable(Of Integer) = Nothing, Optional isSpot As Nullable(Of Boolean) = Nothing, Optional spotExpirationTime As Nullable(Of DateTime) = Nothing, Optional freeOfferExpirationTime As Nullable(Of DateTime) = Nothing, Optional resourceGroup As String = Nothing, Optional reserved As Nullable(Of Boolean) = Nothing, Optional isXenon As Nullable(Of Boolean) = Nothing, Optional hyperV As Nullable(Of Boolean) = Nothing, Optional targetWorkerCount As Nullable(Of Integer) = Nothing, Optional targetWorkerSizeId As Nullable(Of Integer) = Nothing, Optional provisioningState As Nullable(Of ProvisioningState) = Nothing, Optional kubeEnvironmentProfile As KubeEnvironmentProfile = Nothing, Optional zoneRedundant As Nullable(Of Boolean) = Nothing, Optional sku As SkuDescription = Nothing, Optional extendedLocation As ExtendedLocation = Nothing)
Parameters
- location
- String
Resource Location.
- id
- String
Resource Id.
- name
- String
Resource Name.
- kind
- String
Kind of resource.
- type
- String
Resource type.
- tags
- IDictionary<String,String>
Resource tags.
- workerTierName
- String
Target worker tier assigned to the App Service plan.
- status
- Nullable<StatusOptions>
App Service plan status. Possible values include: 'Ready', 'Pending', 'Creating'
- subscription
- String
App Service plan subscription.
- hostingEnvironmentProfile
- HostingEnvironmentProfile
Specification for the App Service Environment to use for the App Service plan.
Maximum number of instances that can be assigned to this App Service plan.
- geoRegion
- String
Geographical location for the App Service plan.
If <code>true</code>, apps assigned to this App Service plan can be scaled independently. If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.
ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku
Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan
The time when the server farm expires. Valid only if it is a spot server farm.
- resourceGroup
- String
Resource group of the App Service plan.
If Linux app service plan <code>true</code>, <code>false</code> otherwise.
Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.
- provisioningState
- Nullable<ProvisioningState>
Provisioning state of the App Service Plan. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'
- kubeEnvironmentProfile
- KubeEnvironmentProfile
Specification for the Kubernetes Environment to use for the App Service plan.
If <code>true</code>, this App Service Plan will perform availability zone balancing. If <code>false</code>, this App Service Plan will not perform availability zone balancing.
- sku
- SkuDescription
- extendedLocation
- ExtendedLocation
Applies to
Azure SDK for .NET