你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AppServicePlan 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AppServicePlan()
初始化 AppServicePlan 类的新实例。
public AppServicePlan ();
Public Sub New ()
适用于
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)
初始化 AppServicePlan 类的新实例。
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)
参数
- location
- String
资源位置。
- id
- String
资源 ID。
- name
- String
资源名称。
- kind
- String
资源类型。
- type
- String
资源类型。
- tags
- IDictionary<String,String>
资源标记。
- workerTierName
- String
分配给App 服务计划的目标辅助角色层。
- status
- Nullable<StatusOptions>
App 服务计划状态。 可能的值包括:“Ready”、“Pending”、“Creating”
- subscription
- String
App 服务计划订阅。
- hostingEnvironmentProfile
- HostingEnvironmentProfile
用于App 服务计划的应用服务环境规范。
- geoRegion
- String
App 服务计划的地理位置。
如果<代码>为 true</code>,则分配给此App 服务计划的应用可以独立缩放。 如果<代码>为 false</code>,则分配给此App 服务计划的应用将扩展到计划的所有实例。
ServerFarm 支持 ElasticScale。 此计划中的应用将缩放,就像 ServerFarm 是 ElasticPremium SKU 一样
- resourceGroup
- String
App 服务计划的资源组。
- provisioningState
- Nullable<ProvisioningState>
App 服务计划的预配状态。 可能的值包括:“Succeeded”、“Failed”、“Canceled”、“InProgress”、“Deleting”
- kubeEnvironmentProfile
- KubeEnvironmentProfile
用于App 服务计划的 Kubernetes 环境的规范。
如果<代码>为 true</code>,则此App 服务计划将执行可用性区域均衡。 如果<代码>为 false</code>,则此App 服务计划不会执行可用性区域均衡。
- sku
- SkuDescription
- extendedLocation
- ExtendedLocation