Enable-​Service​Fabric​Node

Enables a Service Fabric node.

Syntax

Enable-ServiceFabricNode
      [-NodeName] <String>
      [-TimeoutSec <Int32>]
      [<CommonParameters>]

Description

The Enable-ServiceFabricNode cmdlet enables a previously disabled Service Fabric node. Use this cmdlet after a node has been disabled and the administrative task completed. This cmdlet can also cancel an existing Disable-ServiceFabricNode command.

To manage Service Fabric clusters, start Windows PowerShell by using the Run as administrator option. Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Enable a node

PS C:\> Enable-ServiceFabricNode -NodeName "DB.41"

This command enables a node named DB.41.

Required Parameters

-NodeName

Specifies the name of a Service Fabric node. The cmdlet enables the node that you specify.

Type:String
Position:1
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

None

You cannot pipe input to this cmdlet.

Outputs

System.Object

This cmdlet returns a message that includes the status of the operation.