< Back

Set-VMHostProfileVmPortGroupConfiguration

Sun Jan 19, 2020 7:11 pm

NAME 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>]





DESCRIPTION

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





PARAMETERS

-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.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-VLanId <Int32>

Specifies the VLAN ID for the port group.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-VmPortGroupConfiguration <VMHostProfileVmPortGroupConfiguration[]>

Specifies the configuration that you want to modify.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-VSwitchName <String>

Specifies the virtual switch name for the port group.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

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





VMware.VimAutomation.ViCore.Types.V1.VIServer[]







OUTPUTS

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







NOTES









-------------------------- 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 LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... ofile.html

Get-VMHostProfileVmPortGroupConfiguration

New-VMHostProfileVmPortGroupConfiguration

Remove-VMHostProfileVmPortGroupConfiguration