Set-VDPort

This cmdlet modifies the configuration of virtual distributed ports.

Syntax

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

    Feedback

    Was this page helpful?