Get-SCApplicableVMHostGroup
Gets an applicable host group.
Syntax
Get-SCApplicableVMHostGroup
[-VMMServer <ServerConnection>]
-LogicalSwitch <LogicalSwitch>
[<CommonParameters>]
Get-SCApplicableVMHostGroup
[-VMMServer <ServerConnection>]
-UplinkPortProfileSet <UplinkPortProfileSet>
[<CommonParameters>]
Get-SCApplicableVMHostGroup
[-VMMServer <ServerConnection>]
-NativeUplinkPortProfile <NativeUplinkPortProfile>
[<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 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NativeUplinkPortProfile
Specifies a native uplink port profile object.
Type: | NativeUplinkPortProfile |
Position: | Named |
Default value: | None |
Required: | True |
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 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
Specifies a Virtual Machine Manager (VMM) server object.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |