vmware-archive / powernsx

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

Set-NsxEdgeFirewall requires Confirm parameter but error message not descriptive #486

Closed AVillarGarea closed 6 years ago

AVillarGarea commented 6 years ago

The following command Get-NsxEdge | Get-NsxEdgeFirewall | Set-NsxEdgeFirewall -DefaultRuleAction deny

returns this error message Set-NsxEdgeFirewall : Parameter set cannot be resolved using the specified named parameters.

Adding -Confirm, it works: Get-NsxEdge | Get-NsxEdgeFirewall | Set-NsxEdgeFirewall -DefaultRuleAction deny -Confirm

Though -Confirm is only an optional parameter according the get-help.

Would it be possible to update the error message and/or the command help? Thanks!

dcoghlan commented 6 years ago

I can see the issue. I have submitted PR #486 which should fix the issue.