Open neilcat opened 6 years ago
Hi Neil,
yes, i confirm the issue
it coming because there is a "check" for check if it is a valid NsxMemberType (using Get-NsxSecurityGroupMemberTypes cmdlets) but thiere is no -Connection option for when there is the check...
You can use before your add-nsxSecurityGroupMember, this command $script:NsxMemberTypes = Get-NsxSecurityGroupMemberTypes -Connection $customconnection
it will work !
Cmdlets like Add-NsxSecurityGroupMember fail if defaultNSXConnection is not set as they call ValidateSecurityGroupMember which relies on this.
Eg.