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

Get-NsxServiceGroupMember doesn't filter on -objectID parameter correctly #622

Open McGreggor opened 4 years ago

McGreggor commented 4 years ago

When I run

Get-NsxServiceGroupMember -ServiceGroup (Get-NsxServiceGroup -Name "Microsoft Active Directory" -LocalOnly) -objectId (Get-NsxService -Name "MS-DS-UDP" -LocalOnly).objectId

I get all service objects return, not just the MS-DS-UDP object as expected.

alagoutte commented 4 years ago

Hi @McGreggor,

yes, there is a bug... there is objectId parameer on Get-NSXServiceGroupMember but it is not used.. (File PowerNSX.psm1 line 27000)