Add-​Service​Fabric​Node

Adds a Service Fabric node to a cluster.

Syntax

Add-ServiceFabricNode
   [-NodeName] <String>
   -FabricRuntimePackagePath <String>
   -FaultDomain <String>
   -IpAddressOrFQDN <String>
   -NodeType <String>
   [-TimeoutSec <Int32>]
   -UpgradeDomain <String>
   [<CommonParameters>]

Description

The Add-ServiceFabricNode adds a Service Fabric node to a cluster for standalone deployments. You must run this cmdlet on the machine that you want to add. Before you perform this operation, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Add a node to a cluster

PS C:\> Add-ServiceFabricNode -NodeName "N011" -NodeType "NodeType0" -IpAddressOrFQDN "10.10.100.100" -UpgradeDomain "ud5" -FaultDomain "fd:/dc5/r0" -FabricRuntimePackagePath "D:\deployanywhere\MicrosoftAzureServiceFabric.cab"

This command adds the specified node to a cluster with the given NodeName, NodeType, IpAddressOrFQDN, UpgradeDomain, and FaultDomain. The NodeType parameter should already exist in the deployed JSON config. FabricRuntimePackagePath points to the current runtime package on which the cluster is deployed.

Required Parameters

-FabricRuntimePackagePath

Specifies the path to the service fabric runtime package.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FaultDomain

Specifies the fault domain of the node.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IpAddressOrFQDN

Specifies the IP address or fully qualified domain name (FQDN) of the node.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NodeName

Specifies the name of the node that this cmdlet adds.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NodeType

Specifies the node type name of the node that this cmdlet adds.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UpgradeDomain

Specifies the upgrade domain for the node.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

This cmdlet accepts a string for the name of the Service Fabric node, node type, IP address of the machine to add, upgrade domain, fault domain, and fabric package source path.