Add NSX-T Subnet to Virtual Network (optional)
VMware NSX-T is how networking is provisioned and managed within an AVS deployment. Before provisioning a network segment from within NSX-T, an address space and a subnet may need to be added to a virtual network within Azure. If there's both address space and a subnet already created to use with NSX-T, feel free to skip this section and go directly to the next section of this article: Create a Network Segment in NSX-T.
Providing a dedicated subnet for NSX-T to use within a virtual network is required to avoid potential IP address collisions from other deployed solutions in the Resource Group. To get started, select the virtual network you previously associated with the AVS deployment from within the Resource Group, then click on Address Space, add in a new range and click Save(this step is optional if a large address space exists that you can add another subnet to).
From within the same virtual network console, next click on Subnets, then + Subnet and provide a subnet Name (in our example we name it NSX), a subnet address range CIDR and lastly click on OK to add the new subnet.
With the new subnet created for use with NSX-T we can now proceed with created and mapping a new network segment.
Create a Network Segment within NSX-T
The first step is create a network segment is to log in to the NSX-T appliance. IP address and credentials can be found within the AVS managed appliance under Connectivity. Unless external access has been setup previously, you should use the jumphost provisioned in the first section of this guide to access NSX-T.
After successful login, click on the Networking tab in the NSX-T GUI.
Under the Networking tab, select Segments and then click on Add Segment.
In the segment creation wizard, provide a Segment Name, select the Tier 1 Gateway from the Connected Gateway & Type menu (naming convention will be TXXXX-T1), then select the Transport Zone (naming convention will be TXXXX-OVERLAY-TZ). Next, click on Set Subnets in order to define the IP subnet that the segment will use.
Within the Set Subnets window, click on Add Subnet.
Use the virtual network subnet defined earlier within this guide (or use one that was previously created) as the Gateway IP/Prefix length, taking care to provide a gateway IP address (e.g. X.X.X.1/24). Click on Add once the information has been entered.
Click on the Apply button to save the subnet.
With the information for the new NSX-T network segment added, click on the Save button to create it.
Further configuration is not needed for the segment, so click on No in this window:
The new network segment should now appear within the NSX-T networking tab.
Confirm that the new network has been successfully added to vSphere by logging into the vSphere client and clicking on the Network icon.
Virtual machines and containers deployed within vSphere can now leverage this network for use.