Set-VMHostProfileVmPortGroupConfiguration

This cmdlet modifies the virtual machine port group configuration for the given host profile.

Syntax

-VmPortGroupConfiguration  <VMHostProfileVmPortGroupConfiguration[]>
[-Server  <VIServer[]>]
[-VLanId  <Int32>]
[-VSwitchName  <String>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VmPortGroupConfiguration
VMHostProfileVmPortGroupConfiguration[] named
  • pipeline
  • Specifies the configuration that you want to modify.
    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.
    optional
    VLanId
    Int32 named Specifies the VLAN ID for the port group.
    optional
    VSwitchName
    String named Specifies the virtual switch name for the port group.

    Output

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

    Examples


    Example 1

    PS C:\> $conf = Get-VMHostProfileVmPortGroupConfiguration -HostProfile 'Host_Profile'
    PS C:\> Set-VMHostProfileVmPortGroupConfiguration -VmPortGroupConfiguration $conf -VLanId 0

    Modifies the virtual machine port group configuration by setting the VLAN ID to zero.

    Related Commands

    Feedback

    Was this page helpful?