VMware Networking Community
mumbles202
Contributor
Contributor
Jump to solution

Cloning NSX Edge

is there a supported way to clone NSX edge gateways, or to have some type of template to deploy them?  I have a number of edges to deploy, and while they all will have different information on their interfaces, much of the configuration (firewall rules, nat exemptions, etc) will remain the same other than the local network needing to be updated.  I have objects defined at the global level so I'd want to build an edge, add the required rules and nat statements, and then use that to deploy future ones.  I found a site referencing using "get-nsxedge edge01 | copy-nsxedge" but wasn't sure if that was a built-in function and if using it in that manner was supported.

Reply
0 Kudos
1 Solution

Accepted Solutions
Sreec
VMware Employee
VMware Employee
Jump to solution

There is no supported way of cloning edges for the ease of deployment. Power-NSX would be the right candidate for automating the deployment .You may please follow

GitHub - vmware/powernsx: PowerShell module that abstracts the VMware NSX-v API to a set of easily u...

I hope the site you are referring is ->  https://powernsx.github.io/blog#blog031116   ?

It accomodates the following edge features:

  • Interface IPs
  • Secondary Addresses
  • Load Balancer VIPs
  • Self Signed certificate regeneration
  • SSL VPN configurations
  • IPSEC configurations
  • NAT and DFW elements
  • Local objects

Few  examples are mentioned here https://networkinferno.net/powernsx-automating-an-entire-3-tier-app-deployment-2

Cheers,
Sree | VCIX-5X| VCAP-5X| VExpert 6x|Cisco Certified Specialist
Please KUDO helpful posts and mark the thread as solved if answered

View solution in original post

Reply
0 Kudos
3 Replies
Sreec
VMware Employee
VMware Employee
Jump to solution

There is no supported way of cloning edges for the ease of deployment. Power-NSX would be the right candidate for automating the deployment .You may please follow

GitHub - vmware/powernsx: PowerShell module that abstracts the VMware NSX-v API to a set of easily u...

I hope the site you are referring is ->  https://powernsx.github.io/blog#blog031116   ?

It accomodates the following edge features:

  • Interface IPs
  • Secondary Addresses
  • Load Balancer VIPs
  • Self Signed certificate regeneration
  • SSL VPN configurations
  • IPSEC configurations
  • NAT and DFW elements
  • Local objects

Few  examples are mentioned here https://networkinferno.net/powernsx-automating-an-entire-3-tier-app-deployment-2

Cheers,
Sree | VCIX-5X| VCAP-5X| VExpert 6x|Cisco Certified Specialist
Please KUDO helpful posts and mark the thread as solved if answered
Reply
0 Kudos
bayupw
Leadership
Leadership
Jump to solution

I assume you are referencing to PowerNSX cmdlets.

You can use the Export & ImportNsxObject cmdlets, see below example:

     Get-NsxEdge Edge01 | Export-NsxObject c:\temp\Edge01.xml

     Import-NsxObject c:\temp\Edge01.xml | Copy-NsxEdge

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
Reply
0 Kudos
mumbles202
Contributor
Contributor
Jump to solution

Thanks for the reply.  Yes, that's what I was referring to in terms of the site and commands.  I'll review and test and see if we run into any issues.

Reply
0 Kudos