Get-SCApplicableVMHostGroup

Get-SCApplicableVMHostGroup

Gets an applicable host group.

構文

Parameter Set: ByLogicalSwitch
Get-SCApplicableVMHostGroup -LogicalSwitch <LogicalSwitch> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ByNativeUplinkPortProfile
Get-SCApplicableVMHostGroup -NativeUplinkPortProfile <NativeUplinkPortProfile> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ByUplinkPortProfileSet
Get-SCApplicableVMHostGroup -UplinkPortProfileSet <UplinkPortProfileSet> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

詳細説明

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

パラメーター

-LogicalSwitch<LogicalSwitch>

Specifies a logical switch object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-NativeUplinkPortProfile<NativeUplinkPortProfile>

Specifies a native uplink port profile object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-UplinkPortProfileSet<UplinkPortProfileSet>

Specifies an uplink port profile set object.

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

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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

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

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

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

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

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

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

Example Example 3: Get the applicable host group for a NativeUplinkPortProfile.

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

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

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

関連トピック

Get-SCLogicalSwitch

Get-SCNativeUplinkPortProfile

Get-SCUplinkPortProfileSet