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

  1. Prepare the input for the segment subnet.
    $segmentSubnet = Initialize-SegmentSubnet -GatewayAddress $GatewayCIDR
  2. Prepare the input for the segment.
    $segment = Initialize-Segment -DisplayName $SegmentName -Subnets @($segmentSubnet)
  3. Invoke the operation.
    Invoke-CreateOrReplaceSegment -Tier1Id $T1GatewayName -SegmentId $SegmentName -Segment $segment