Get-​Service​Fabric​Node

Gets information for the all nodes in a Service Fabric cluster or for a specific node.

Syntax

Get-ServiceFabricNode
   [[-NodeName] <String>]
   [-StatusFilter <NodeStatusFilter>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricNode cmdlet gets information for all the nodes in a Service Fabric cluster or for a specific node. The returned node information includes the node name, status, type, and health state (see the Outputs section for more details).

Keep in mind that, before you perform any operation on a Service Fabric cluster you must establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Get information for all nodes in the cluster

PS C:\> Get-ServiceFabricNode

This command returns information for all the nodes in the Service Fabric cluster.

Example 2: Get information for a specific node

PS C:\> Get-ServiceFabricNode -NodeName Node1

This command returns information for the node with the name Node1.

Optional Parameters

-NodeName

Specifies the name of the Service Fabric node whose information is being returned. If not specified, the cmdlet will return information for all the nodes in the cluster.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-StatusFilter

Specifies the node status filter as a System.Fabric.Query.NodeStatusFilter object.Only nodes with status matching this filter will be returned in the results.

Type:NodeStatusFilter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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

Outputs