WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Automating the creation of NSX-T "Disconnected" Segments for DR testing on VMware Cloud on AWS 

Automating the creation of NSX-T "Disconnected" Segments for DR testing on VMware Cloud on AWS 

03.05.2020 by William Lam // 1 Comment

Disaster Recovery (DR) and Disaster Avoidance (DA) on VMware Cloud on AWS is still one of the most popular use case amongst our customers, just second to Datacenter Migration and Evacuation. The VMware Site Recovery service makes it extremely easy and cost effective for customers to protect their critical workloads without having to worry about the underlying infrastructure. Most often, the biggest cost of having a dedicated DR site is the on-going operational and maintenance cost of that infrastructure.

Most recently I have seen several requests come in where customers were looking to streamline their DR testing which is fantastic to hear. Just having a DR solution is not enough, you actually need to exercise it and verify that your workloads and applications are functioning as expected. Today, customers can verify that their applications are functioning as expected by creating NSX-T network segments that are "Disconnected" and then using a VM-based router to provide internal connectivity between these isolated environments.

Here is a screenshot of the VMware Cloud console and under the Networking & Security tab, when creating a new segment you can specify whether the segment is "Connected" (Routed) or "Disconnected".


Obviously, the NSX-T UI is just one way of creating a segment. In fact, most customers that have asked about this is wanting to do this via Automation which not only brings speed to testing but also consistency! With that, I have updated my NSX-T PowerShell Community Module for VMC to include two new updates. If you have never used this VMC module before, please take a look at the Getting Started guide here.

1. New-NSXTSegment function now supports a new -Disconnected parameter which will automatically create the segment in a Disconnected state as shown in the screenshot below.

 2. For those that have already created a segment, I have added a new Set-NSXTSegment function which supports toggling both Routed/Disconnected state using -Connected or -Disconnected as demonstrated in the screenshot below.

Note: You can only create a segment that is disconnected when DHCP is NOT used, you will receive an error from the API and the UI, it will prevent you from filling in the DHCP settings. This is important if you have an existing segment which you wish to disconnect, it must not have DHCP enabled.

For those interested in the underlying NSX-T REST API details and wish to consume it not using PowerShell, you can specify the -Troubleshoot parameter which will show you the exact HTTP verb along with the respective payload. You can also simply look at the source code to see the endpoint and payload as I am simply using the Invoke-Webrequest cmdlet from PowerShell.

More from my site

  • Retrieving network statistics on VMware Cloud on AWS using NSX-T Policy API
  • Connecting to NSX-T Policy API using NSX-T Private IP in VMC
  • NSX-T Policy API Explorer, Docs and Sample Updates for VMC
  • NSX-T Opaque Networks now supported with Cross vCenter Workload Migration Fling
  • Which NSX-T Policy APIs are used in the NSX-T UI in VMC?

Categories // Automation, NSX, PowerCLI, VMware Cloud on AWS Tags // NSX-T, VMware Cloud on AWS

Comments

  1. *protectedarunabhatech says

    03/05/2020 at 10:42 pm

    Nice!

    Reply

Leave a Reply to arunabhatechCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...