You can create a segment for an NSX server system on VMware Cloud on AWS by using the Invoke-CreateOrReplaceSegment cmdlet.
Prerequisites
- Verify that you are connected to an NSX server system on VMware Cloud on AWS.
- Verify that your system has Tier-1 gateway(s).
Procedure
- Prepare the input for the segment subnet.
$segmentSubnet = Initialize-SegmentSubnet -GatewayAddress $GatewayCIDR
- Prepare the input for the segment.
$segment = Initialize-Segment -DisplayName $SegmentName -Subnets @($segmentSubnet)
- Invoke the operation.
Invoke-CreateOrReplaceSegment -Tier1Id $T1GatewayName -SegmentId $SegmentName -Segment $segment