Syntax
New-VMHostProfileVmPortGroupConfiguration [-HostProfile] <VMHostProfile> [-PortGroupName] <String> [-VSwitchName] <String> [-Server <VIServer[]>] [-VLanId <Int32>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet creates a new virtual machine port group configuration.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
HostProfile | VMHostProfile | Specifies the virtual machine host profile. | true | True (ByValue) | |
PortGroupName | String | Specifies the name of the new virtual machine port group configuration. This name is unique for the particual host profile. | true | False | |
VSwitchName | String | Specifies the virtual switch name for the new configuration. | true | False | |
Server | VIServer[] | 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. | false | True (ByValue) | |
VLanId | Int32 | Specifies the VLAN ID for the new configuration. | false | False |
Return Type
VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileVmPortGroupConfigurationNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> New-VMHostProfileVmPortGroupConfiguration -HostProfile 'Host Profile' -PortGroupName 'VM Network2' -VSwitchName 'vSwitch0' -VLanId 1
Creates a new virtual machine port group configuration 'VM Network2' within the host profile named 'HostProfile' with a virtual switch named 'vSwitch0' and VLAN Id that is equal to one.