Set-VDPort Command | Vmware PowerCLI Reference

Set-VDPort

This cmdlet modifies the configuration of virtual distributed ports.

Syntax

Set-VDPort
[ -VDPort ] < VDPort[] >
[-Description < String > ]
[-Name < String > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VDPort VDPort[] 1
  • pipeline
Specifies the virtual distributed port that you want to configure.
optional Description String named
Specifies a description for the virtual distributed port that you want to configure.
optional Name String named
Specifies a new name for the virtual distributed port that you want to configure.

Output

VMware.VimAutomation.Vds.Types.V1.VDPort

Examples

Example 1

$myVDPort = Get-VDPort -Key "Port0" -VDSwtich "MyVDSwitch"
Set-VDPort -VDPort $myVDPort -Name "MyUpdatedPortName" -Description "MyUpdatedVDPortDescription"

Updates the name and the description of a specified virtual distributed port inside a vSphere distributed switch named "MyVDSwitch".

Related Commands

VDPort

This cmdlet retrieves virtual distributed ports.

This cmdlet modifies the configuration of virtual distributed ports.

VDPortGroup

This cmdlet exports the configuration of a specified distributed port group to a specified .zip file.

This cmdlet removes distributed port groups.

VDPortgroup

This cmdlet retrieves distributed port groups.

This cmdlet creates distributed port groups.

This cmdlet modifies the configuration of distributed port groups.

VDPortgroupOverridePolicy

This cmdlet retrieves the policy for overriding port group settings at port level.

This cmdlet modifies the policy for overriding port group settings at port level.