You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
PowerNSX doesn't validate if parameter is null or empty. So if I accidentally make a typo in the variable name, like so Get-NsxEdge -Name $publicEsgNmae, PowerNSX will treat empty value as a wildcard and retrieve all ESGs in the environment.
Typically cmdlets (like PowerCLI for example), will throw an error for an empty value:
Get-VDPortgroup : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
As a result of this, command like Get-NsxEdge -Name $publicEsgNmae | Remove-NsxEdge, may attempt to wipe out all ESGs from NSX.
Scary stuff.
The text was updated successfully, but these errors were encountered:
PowerNSX doesn't validate if parameter is null or empty. So if I accidentally make a typo in the variable name, like so
Get-NsxEdge -Name $publicEsgNmae
, PowerNSX will treat empty value as a wildcard and retrieve all ESGs in the environment.Typically cmdlets (like PowerCLI for example), will throw an error for an empty value:
As a result of this, command like
Get-NsxEdge -Name $publicEsgNmae | Remove-NsxEdge
, may attempt to wipe out all ESGs from NSX.Scary stuff.
The text was updated successfully, but these errors were encountered: