Get-SCFabricRole

Gets a fabric role.

Syntax

Get-SCFabricRole -ID <Guid> [-OnBehalfOfUser <String>] [-OnBehalfOfUserRole <UserRole>]
 [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCFabricRole [-Name <String>] -NetworkService <NetworkService> [-OnBehalfOfUser <String>]
 [-OnBehalfOfUserRole <UserRole>] [-Type <FabricRoleType>] [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Get-SCFabricRole cmdlet gets a fabric role.

Examples

Example 1: Gets the existing fabric roles

PS C:\> $NetworkService = Get-SCNetworkService -Name "ns"
PS C:\> $FabricRole = Get-SCFabricRole -NetworkService $NetworkService -Name "fr"

The first command gets a network service by using the Get-SCNetworkService cmdlet, and then stores it in the $NetworkService variable.

The second command gets the existing fabric roles for the service in $NetworkService that have the specified name.

Parameters

-ID

Specifies the ID of the fabric role to get.

Type:Guid
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the fabric role to get.

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

Specifies a network service object.

Type:NetworkService
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OnBehalfOfUser

Specifies a user name. This cmdlet operates on behalf of the user that this parameter specifies.

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

Specifies a user role. To obtain a user role, use the Get-SCUserRole cmdlet. This cmdlet operates on behalf of the user role that this parameter specifies.

Type:UserRole
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Type

Specifies the type. Valid values are:

- Unknown

  • Gateway
  • LoadBalancer

Type:FabricRoleType
Parameter Sets:Unknown, Gateway, LoadBalancer
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False