When trying to configure NSX-T via PowerCLI, I am getting the below error when running any commands referencing the Get-NsxtPolicyService or nsx_policy API.
PS C:\Users\AL> Get-NsxtPolicyService -Name "com.vmware.nsx_policy.infra.segment
s"
Get-NsxtPolicyService: 7/15/2020 11:42:51 PM Get-NsxtPolicyService
NsxtPolicyService with name 'com.vmware.nsx_policy.infra.segments' was not found
using the specified filter(s).
PS C:\Users\AL>
Other functions/APIs such as Get-NsxtService work fine:
PS C:\Users\AL> Get-NsxtService -Name "com.vmware.nsx.edge_clusters.state"
Name
----
com.vmware.nsx.edge_clusters.state
This is with NSX-T 3.0 Build 15946739. Does anyone have any idea why this might be happening?
@andreliu I would be interested as well, did you find a solution? For me on two different PowerShell environments connected to the same server, on one Get-NsxtPolicyService returns fine, on the other it fails with "NsxtPolicyService with name '...' was not found"