Get-​Service​Fabric​Service​Group​Member

Gets members of service groups.

Syntax

Get-ServiceFabricServiceGroupMember
   [-Adhoc]
   [[-ServiceName] <Uri>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]
Get-ServiceFabricServiceGroupMember
   [-ApplicationName] <Uri>
   [[-ServiceName] <Uri>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricServiceGroupMember cmdlet gets members of Service Fabric service groups.

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: Get a service group members

PS C:\> Get-ServiceFabricServiceGroupMember -ApplicationName -ServiceName fabric:/CalcApp

The command gets Service Fabric service group members for the service named fabric:/CalcApp.

Required Parameters

-Adhoc

Indicates that the service runs in ad hoc mode. In ad hoc mode, you manually activate the service host.

Type:SwitchParameter
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ApplicationName

Specifies the Uniform Resource Identifier (URI) of a Service Fabric application. This cmdlet gets group members for the application that this parameter specifies.

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

Optional Parameters

-ServiceName

Specifies the Uniform Resource Identifier (URI) of a Service Fabric service group.

Type:Uri
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
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

System.Uri

Outputs

System.Object