Get-VMHostProfileVmPortGroupConfiguration

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

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
required
HostProfile
VMHostProfile[] named
  • pipeline
  • Specifies the virtual machine host profile.
    optional
    PortGroupName
    String[] 1 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.
    optional
    Server
    VIServer[] named
  • pipeline
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null 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.

    Output

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

    Examples


    Example 1

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

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

    Related Commands

    Feedback

    Was this page helpful?