你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Cluster 构造函数

定义

重载

Cluster()

初始化 Cluster 类的新实例。

Cluster(String, String, IList<NodeTypeDescription>, String, String, String, IDictionary<String,String>, String, IList<String>, IList<ClusterVersionDetails>, AzureActiveDirectory, CertificateDescription, ServerCertificateCommonNames, IList<ClientCertificateCommonName>, IList<ClientCertificateThumbprint>, String, String, String, String, DiagnosticsStorageAccountConfig, Nullable<Boolean>, IList<SettingsSectionDescription>, String, String, CertificateDescription, ServerCertificateCommonNames, ClusterUpgradePolicy, String, ApplicationTypeVersionsCleanupPolicy, String)

初始化 Cluster 类的新实例。

Cluster()

初始化 Cluster 类的新实例。

public Cluster ();
Public Sub New ()

适用于

Cluster(String, String, IList<NodeTypeDescription>, String, String, String, IDictionary<String,String>, String, IList<String>, IList<ClusterVersionDetails>, AzureActiveDirectory, CertificateDescription, ServerCertificateCommonNames, IList<ClientCertificateCommonName>, IList<ClientCertificateThumbprint>, String, String, String, String, DiagnosticsStorageAccountConfig, Nullable<Boolean>, IList<SettingsSectionDescription>, String, String, CertificateDescription, ServerCertificateCommonNames, ClusterUpgradePolicy, String, ApplicationTypeVersionsCleanupPolicy, String)

初始化 Cluster 类的新实例。

public Cluster (string location, string managementEndpoint, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.NodeTypeDescription> nodeTypes, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string etag = default, System.Collections.Generic.IList<string> addOnFeatures = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ClusterVersionDetails> availableClusterVersions = default, Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory azureActiveDirectory = default, Microsoft.Azure.Management.ServiceFabric.Models.CertificateDescription certificate = default, Microsoft.Azure.Management.ServiceFabric.Models.ServerCertificateCommonNames certificateCommonNames = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ClientCertificateCommonName> clientCertificateCommonNames = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ClientCertificateThumbprint> clientCertificateThumbprints = default, string clusterCodeVersion = default, string clusterEndpoint = default, string clusterId = default, string clusterState = default, Microsoft.Azure.Management.ServiceFabric.Models.DiagnosticsStorageAccountConfig diagnosticsStorageAccountConfig = default, bool? eventStoreServiceEnabled = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.SettingsSectionDescription> fabricSettings = default, string provisioningState = default, string reliabilityLevel = default, Microsoft.Azure.Management.ServiceFabric.Models.CertificateDescription reverseProxyCertificate = default, Microsoft.Azure.Management.ServiceFabric.Models.ServerCertificateCommonNames reverseProxyCertificateCommonNames = default, Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy upgradeDescription = default, string upgradeMode = default, Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy applicationTypeVersionsCleanupPolicy = default, string vmImage = default);
new Microsoft.Azure.Management.ServiceFabric.Models.Cluster : string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.NodeTypeDescription> * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ClusterVersionDetails> * Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory * Microsoft.Azure.Management.ServiceFabric.Models.CertificateDescription * Microsoft.Azure.Management.ServiceFabric.Models.ServerCertificateCommonNames * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ClientCertificateCommonName> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ClientCertificateThumbprint> * string * string * string * string * Microsoft.Azure.Management.ServiceFabric.Models.DiagnosticsStorageAccountConfig * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.SettingsSectionDescription> * string * string * Microsoft.Azure.Management.ServiceFabric.Models.CertificateDescription * Microsoft.Azure.Management.ServiceFabric.Models.ServerCertificateCommonNames * Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy * string * Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy * string -> Microsoft.Azure.Management.ServiceFabric.Models.Cluster
Public Sub New (location As String, managementEndpoint As String, nodeTypes As IList(Of NodeTypeDescription), Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional etag As String = Nothing, Optional addOnFeatures As IList(Of String) = Nothing, Optional availableClusterVersions As IList(Of ClusterVersionDetails) = Nothing, Optional azureActiveDirectory As AzureActiveDirectory = Nothing, Optional certificate As CertificateDescription = Nothing, Optional certificateCommonNames As ServerCertificateCommonNames = Nothing, Optional clientCertificateCommonNames As IList(Of ClientCertificateCommonName) = Nothing, Optional clientCertificateThumbprints As IList(Of ClientCertificateThumbprint) = Nothing, Optional clusterCodeVersion As String = Nothing, Optional clusterEndpoint As String = Nothing, Optional clusterId As String = Nothing, Optional clusterState As String = Nothing, Optional diagnosticsStorageAccountConfig As DiagnosticsStorageAccountConfig = Nothing, Optional eventStoreServiceEnabled As Nullable(Of Boolean) = Nothing, Optional fabricSettings As IList(Of SettingsSectionDescription) = Nothing, Optional provisioningState As String = Nothing, Optional reliabilityLevel As String = Nothing, Optional reverseProxyCertificate As CertificateDescription = Nothing, Optional reverseProxyCertificateCommonNames As ServerCertificateCommonNames = Nothing, Optional upgradeDescription As ClusterUpgradePolicy = Nothing, Optional upgradeMode As String = Nothing, Optional applicationTypeVersionsCleanupPolicy As ApplicationTypeVersionsCleanupPolicy = Nothing, Optional vmImage As String = Nothing)

参数

location
String

Azure 资源位置。

managementEndpoint
String

群集的 http 管理终结点。

nodeTypes
IList<NodeTypeDescription>

群集中的节点类型列表。

id
String

Azure 资源标识符。

name
String

Azure 资源名称。

type
String

Azure 资源类型。

tags
IDictionary<String,String>

Azure 资源标记。

etag
String

Azure 资源 etag。

addOnFeatures
IList<String>

要在群集中启用的加载项功能的列表。

availableClusterVersions
IList<ClusterVersionDetails>

适用于此群集的 Service Fabric 运行时版本。

azureActiveDirectory
AzureActiveDirectory

群集的 AAD 身份验证设置。

certificate
CertificateDescription

用于保护群集的证书。 提供的证书将用于群集中的节点到节点安全性、群集管理终结点的 SSL 证书和默认管理客户端。

certificateCommonNames
ServerCertificateCommonNames

描述用于保护群集的公用名称引用的服务器证书的列表。

clientCertificateCommonNames
IList<ClientCertificateCommonName>

允许管理群集的公用名引用的客户端证书列表。

clientCertificateThumbprints
IList<ClientCertificateThumbprint>

允许管理群集的指纹引用的客户端证书列表。

clusterCodeVersion
String

群集的 Service Fabric 运行时版本。 此属性只能通过在 upgradeMode 设置为“Manual”时设置用户。 若要获取新群集的可用 Service Fabric 版本列表,请使用 ClusterVersion API。 若要获取现有群集的可用版本列表,请使用 availableClusterVersions

clusterEndpoint
String

Azure 资源提供程序终结点。 群集中的系统服务连接到此终结点。

clusterId
String

服务为群集资源生成的唯一标识符。

clusterState
String

群集的当前状态。

         - WaitingForNodes - Indicates that the cluster resource is created
         and the resource provider is waiting for Service Fabric VM
         extension to boot up and report to it.
         - Deploying - Indicates that the Service Fabric runtime is being
         installed on the VMs. Cluster resource will be in this state until
         the cluster boots up and system services are up.
         - BaselineUpgrade - Indicates that the cluster is upgrading to
         establishes the cluster version. This upgrade is automatically
         initiated when the cluster boots up for the first time.
         - UpdatingUserConfiguration - Indicates that the cluster is being
         upgraded with the user provided configuration.
         - UpdatingUserCertificate - Indicates that the cluster is being
         upgraded with the user provided certificate.
         - UpdatingInfrastructure - Indicates that the cluster is being
         upgraded with the latest Service Fabric runtime version. This
         happens only when the **upgradeMode** is set to 'Automatic'.
         - EnforcingClusterVersion - Indicates that cluster is on a
         different version than expected and the cluster is being upgraded
         to the expected version.
         - UpgradeServiceUnreachable - Indicates that the system service in
         the cluster is no longer polling the Resource Provider. Clusters in
         this state cannot be managed by the Resource Provider.
         - AutoScale - Indicates that the ReliabilityLevel of the cluster is
         being adjusted.
         - Ready - Indicates that the cluster is in a stable state.
         . Possible values include: 'WaitingForNodes', 'Deploying',
         'BaselineUpgrade', 'UpdatingUserConfiguration',
         'UpdatingUserCertificate', 'UpdatingInfrastructure',
         'EnforcingClusterVersion', 'UpgradeServiceUnreachable',
         'AutoScale', 'Ready'
diagnosticsStorageAccountConfig
DiagnosticsStorageAccountConfig

用于存储 Service Fabric 诊断日志的存储帐户信息。

eventStoreServiceEnabled
Nullable<Boolean>

指示是否启用了事件存储服务。

fabricSettings
IList<SettingsSectionDescription>

用于配置群集的自定义结构设置的列表。

provisioningState
String

群集资源的预配状态。 可能的值包括:“Updating”、“Succeeded”、“Failed”、“Canceled”

reliabilityLevel
String

可靠性级别设置系统服务的副本 (replica) 集大小。 了解 ReliabilityLevel

         - None - Run the System services with a target replica set count of
         1. This should only be used for test clusters.
         - Bronze - Run the System services with a target replica set count
         of 3. This should only be used for test clusters.
         - Silver - Run the System services with a target replica set count
         of 5.
         - Gold - Run the System services with a target replica set count of
         7.
         - Platinum - Run the System services with a target replica set
         count of 9.
         . Possible values include: 'None', 'Bronze', 'Silver', 'Gold',
         'Platinum'
reverseProxyCertificate
CertificateDescription

反向代理使用的服务器证书。

reverseProxyCertificateCommonNames
ServerCertificateCommonNames

描述用于保护群集的公用名称引用的服务器证书的列表。

upgradeDescription
ClusterUpgradePolicy

升级群集时要使用的策略。

upgradeMode
String

新的 Service Fabric 运行时版本可用时群集的升级模式。

         - Automatic - The cluster will be automatically upgraded to the
         latest Service Fabric runtime version as soon as it is available.
         - Manual - The cluster will not be automatically upgraded to the
         latest Service Fabric runtime version. The cluster is upgraded by
         setting the **clusterCodeVersion** property in the cluster
         resource.
         . Possible values include: 'Automatic', 'Manual'
applicationTypeVersionsCleanupPolicy
ApplicationTypeVersionsCleanupPolicy

用于清理未使用版本的策略。

vmImage
String

VM 映像 VMSS 已配置。 可以使用通用名称,例如 Windows 或 Linux。

适用于