Set-VDPortgroupOverridePolicy

This cmdlet modifies the policy for overriding port group settings at port level. At least one of the Bool parameters must be specified.

Syntax

[-Policy]  <VDPortgroupOverridePolicy[]>
[-BlockOverrideAllowed  <Boolean>]
[-ResetPortConfigAtDisconnect  <Boolean>]
[-SecurityOverrideAllowed  <Boolean>]
[-TrafficShapingOverrideAllowed  <Boolean>]
[-UplinkTeamingOverrideAllowed  <Boolean>]
[-VlanOverrideAllowed  <Boolean>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Policy
VDPortgroupOverridePolicy[] 1
  • pipeline
  • Specifies the port group overriding policy that you want to configure.
    optional
    BlockOverrideAllowed
    Boolean named Specifies whether overriding port blocking settings is allowed.
    optional
    ResetPortConfigAtDisconnect
    Boolean named Specifies whether the port configuration is reset when the port is disconnected.
    optional
    SecurityOverrideAllowed
    Boolean named Specifies whether overriding security settings is allowed.
    optional
    TrafficShapingOverrideAllowed
    Boolean named Specifies whether overriding traffic shaping settings is allowed.
    optional
    UplinkTeamingOverrideAllowed
    Boolean named Specifies whether overriding uplink teaming settings is allowed.
    optional
    VlanOverrideAllowed
    Boolean named Specifies whether overriding VLAN settings is allowed.

    Output

    VMware.VimAutomation.Vds.Types.V1.Policy.VDPortgroupOverridePolicy

    Examples


    Example 1

    Get-VDPortgroup "MyVDPortgroup" | Get-VDPortgroupOverridePolicy | Set-VDPortgroupOverridePolicy -BlockOverrideAllowed $true

    Retrieves a distributed port group named "MyVDPortgroup" and updates its overriding policy to allow the port blocking settings to override the default settings at port group level.

    Example 2

    Get-VDSwitch "MyVDSwitch" |
    Get-VDPortgroup | Get-VDPortgroupOverridePolicy |
    Set-VDPortgroupOverridePolicy -ResetPortConfigAtDisconnect $true
    -TrafficShapingOverrideAllowed $true

    Retrieves all port groups inside a distributed switch named "MyVDSwitch" and updates their overriding policies with the options to override the traffic shaping setting at port level, and to reset the distributed port network settings back to the port group settings.

    Related Commands

    Feedback

    Was this page helpful?