VMware: NSX: Using PowerCLI/PowerNSX to view distributed firewall (DFW) rules in a table format.
Out-GridView Example Summary: This was kind of a fun exercise and helpful considering the NSX plugin kinda blows, in flash client at least. Have yet to take a look at HTML5 one that was just released. Was asked if we could output currently configured DFW rules. Below you will find what I slapped together. If it's useful to you too, great. Also, please feel free give me feedback. It will basically give you the following: Rule Number This is kind of a guess in that it assumes that rules will pull down from API in the correct order at runtime. Rule ID Rule Name Source Destination Service Ports Action appliedTo This script requires the following powershell modules: vmware.powercli powernsx Script: