Get-SCApplicableVMHostGroup

Gets an applicable host group.

Syntax

Get-SCApplicableVMHostGroup -LogicalSwitch <LogicalSwitch> [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCApplicableVMHostGroup -NativeUplinkPortProfile <NativeUplinkPortProfile> [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCApplicableVMHostGroup -UplinkPortProfileSet <UplinkPortProfileSet> [-VMMServer <ServerConnection>]
 [<CommonParameters>]

Description

The Get-SCApplicableVMHostGroup cmdlet gets the host group associated with a logical switch, a native uplink port profile, or an uplink port profile set.

Examples

Example 1: Get the applicable host group for a logical switch

PS C:\> $LogSwitch = Get-SCLogicalSwitch -Name "LogicalSwitch01"
PS C:\> Get-SCApplicableVMHostGroup -LogicalSwitch $LogSwitch

The first command gets the logical switch object named LogicalSwitch01 and stores the object in the $LogSwitch variable.

The second command gets the applicable host group for the logical switch stored in $LogSwitch.

Example 2: Get the applicable host group for an uplink port profile set

PS C:\> $UplinkPortProfSet = Get-SCUplinkPortProfileSet -Name "UplinkPortProfileSet01"
PS C:\> Get-SCApplicableVMHostGroup -UplinkPortProfileSet $UplinkPortProfSet

The first command gets the uplink port profile set object named UplinkPortProfileSet01 and stores the object in the $UplinkPortProfSet variable.

The second command gets the applicable host group for the uplink port profile set stored in $UplinkPortProfSet.

Example 3: Get the applicable host group for a NativeUplinkPortProfile

PS C:\> $NativeUplinkPortProf = Get-SCNativeUplinkPortProfile -Name "NativeUplinkPortProfile01"
PS C:\> Get-SCApplicableVMHostGroup -NativeUplinkPortProfile $NativeUplinkPortProf

The first command gets the native uplink port profile object named NativeUplinkPortProfile01 and stores the object in the $NativeUplinkPortProf variable.

The second command gets the applicable host group for the native uplink port profile stored in $NativeUplinkPortProf.

Parameters

-LogicalSwitch

Specifies a logical switch object.

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

Specifies a native uplink port profile object.

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

Specifies an uplink port profile set object.

To obtain an uplink port profile set object, use the Get-SCUplinkPortProfileSet cmdlet.

Type:UplinkPortProfileSet
Required:True
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