Syntax
Set-VMHostProfileVmPortGroupConfiguration [-VmPortGroupConfiguration] <VMHostProfileVmPortGroupConfiguration[]> [-Server <VIServer[]>] [-VLanId <Int32>] [-VSwitchName <String>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet modifies the virtual machine port group configuration for the given host profile.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
VmPortGroupConfiguration | VMHostProfileVmPortGroupConfiguration[] | Specifies the configuration that you want to modify. | true | True (ByValue) | |
Server | VIServer[] | 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. | false | True (ByValue) | |
VLanId | Int32 | Specifies the VLAN ID for the port group. | false | False | |
VSwitchName | String | Specifies the virtual switch name for the port group. | false | False |
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.