< Back
Set-NsxLogicalSwitch
Post
NAME Set-NsxLogicalSwitch
SYNOPSIS
Configure a Logical Switch
SYNTAX
Set-NsxLogicalSwitch [-virtualWire] <XmlElement> [-name <String>] [-description <String>] [-Connection <PSObject>]
[<CommonParameters>]
DESCRIPTION
An NSX Logical Switch provides L2 connectivity to VMs attached to it.
A Logical Switch is 'bound' to a Transport Zone, and only hosts that are
members of the Transport Zone are able to host VMs connected to a Logical
Switch that is bound to it. All Logical Switch operations require a
Transport Zone.
PARAMETERS
-virtualWire <XmlElement>
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-name <String>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-description <String>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
PowerNSX Connection object
Required? false
Position? named
Default value $defaultNSXConnection
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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-NsxTransportZone | Get-NsxLogicalSwitch LS6 | Set-NsxLogicalSwitch -name "LS6-new"
Rename the LogicalSwitch LS6 to LS6-new
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-NsxTransportZone | Get-NsxLogicalSwitch LS6 | Set-NsxLogicalSwitch -description "My Logical Switch
Number 6"
Configure LogicalSwitch LS6 Description (to My Logical Switch Number 6)
RELATED LINKS
SYNOPSIS
Configure a Logical Switch
SYNTAX
Set-NsxLogicalSwitch [-virtualWire] <XmlElement> [-name <String>] [-description <String>] [-Connection <PSObject>]
[<CommonParameters>]
DESCRIPTION
An NSX Logical Switch provides L2 connectivity to VMs attached to it.
A Logical Switch is 'bound' to a Transport Zone, and only hosts that are
members of the Transport Zone are able to host VMs connected to a Logical
Switch that is bound to it. All Logical Switch operations require a
Transport Zone.
PARAMETERS
-virtualWire <XmlElement>
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-name <String>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-description <String>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
PowerNSX Connection object
Required? false
Position? named
Default value $defaultNSXConnection
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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-NsxTransportZone | Get-NsxLogicalSwitch LS6 | Set-NsxLogicalSwitch -name "LS6-new"
Rename the LogicalSwitch LS6 to LS6-new
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-NsxTransportZone | Get-NsxLogicalSwitch LS6 | Set-NsxLogicalSwitch -description "My Logical Switch
Number 6"
Configure LogicalSwitch LS6 Description (to My Logical Switch Number 6)
RELATED LINKS