PowerCLI Reference

Get-VMHostProfileVmPortGroupConfiguration

Synopsis

Retrieves the virtual machine port group configuration for the given host profile.

Syntax

Get-VMHostProfileVmPortGroupConfiguration [-HostProfile] <VMHostProfile[]> [[-PortGroupName] <String[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online Version
Set-VMHostProfileVmPortGroupConfiguration
New-VMHostProfileVmPortGroupConfiguratio
Remove-VMHostProfileVmPortGroupConfiguratio

Detailed Description

Retrieves the virtual machine port group configuration for the given host profile.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
HostProfileVMHostProfile[]Specifies the virtual machine host profile.trueTrue (ByValue)
PortGroupNameString[]Specifies the port group name that is unique for the host profile. The port group name can be passed to filter results for the particular port group.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseTrue (ByValue)

Return Type

VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileVmPortGroupConfiguration[]

Notes

Examples

-------------------------- Example 1 --------------------------

PS C:\> Get-VMHostProfileVmPortGroupConfiguration -HostProfile 'Host_Profile'

Retrieves all virtual machine port group configurations within the host profile named Host_Profile.


Copyright © VMware, Inc. All rights reserved.