vmware-archive / powernsx

PowerShell module that abstracts the VMware NSX-v API to a set of easily used PowerShell functions
173 stars 90 forks source link

can we able to take firewall backup in xml #518

Open vTechworld opened 6 years ago

vTechworld commented 6 years ago

Hi Team, Need to take firewall backup in XML as we do it in GUI -export configuration. Can this be possible.

regards, vTechworld

dcoghlan commented 6 years ago

We have the ability to create the create, retrieve, and set a DFW saved configurations, just like in the UI.

The cmdlets you are looking for are:

vTechworld commented 6 years ago

we can export this using export-nsxobject right

nmbradford commented 6 years ago

yes in theory, though, depending on your requirement, you could just go Get-NsxFirewallSavedconfiguration | format-xml | set-content c:\temp\fwdump.xml