ClusterNodeTypeDescription(String, Int32, Int32, Boolean, Int32) Constructor
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.
Initializes a new instance of ClusterNodeTypeDescription.
public ClusterNodeTypeDescription (string name, int clientConnectionEndpointPort, int httpGatewayEndpointPort, bool isPrimary, int vmInstanceCount);
new Azure.ResourceManager.ServiceFabric.Models.ClusterNodeTypeDescription : string * int * int * bool * int -> Azure.ResourceManager.ServiceFabric.Models.ClusterNodeTypeDescription
Public Sub New (name As String, clientConnectionEndpointPort As Integer, httpGatewayEndpointPort As Integer, isPrimary As Boolean, vmInstanceCount As Integer)
Parameters
- name
- String
The name of the node type.
- clientConnectionEndpointPort
- Int32
The TCP cluster management endpoint port.
- httpGatewayEndpointPort
- Int32
The HTTP cluster management endpoint port.
- isPrimary
- Boolean
The node type on which system services will run. Only one node type should be marked as primary. Primary node type cannot be deleted or changed for existing clusters.
- vmInstanceCount
- Int32
VMInstanceCount should be 1 to n, where n indicates the number of VM instances corresponding to this nodeType. VMInstanceCount = 0 can be done only in these scenarios: NodeType is a secondary nodeType. Durability = Bronze or Durability >= Bronze and InfrastructureServiceManager = true. If VMInstanceCount = 0, implies the VMs for this nodeType will not be used for the initial cluster size computation.
Exceptions
name
is null.
Applies to
Azure SDK for .NET