PowerCLI Reference

Set-VMHostProfileVmPortGroupConfiguration

Synopsis

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

Syntax

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

Related Commands

Online Version
Get-VMHostProfileVmPortGroupConfiguration
New-VMHostProfileVmPortGroupConfiguration
Remove-VMHostProfileVmPortGroupConfiguration

Detailed Description

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

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VmPortGroupConfigurationVMHostProfileVmPortGroupConfiguration[]Specifies the configuration that you want to modify.trueTrue (ByValue)
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given 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)
VLanIdInt32Specifies the VLAN ID for the port group.falseFalse
VSwitchNameStringSpecifies the virtual switch name for the port group.falseFalse

Return Type

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

Notes

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.


Copyright © VMware, Inc. All rights reserved.