You are missing the -CountVariable
parameter ($count=true in the "raw" request). This works for me:
Get-MgServicePrincipal -Filter 'appOwnerOrganizationId eq f8cdef31-a31e-4b4a-93e4-5f571e91255a' -ConsistencyLevel eventual -CountVariable count
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to filter out all the service principals using odata filter query which belongs to microsoft tenant. I am using MG powershell module.
Get-MgServicePrincipal -Filter 'appOwnerOrganizationId eq f8cdef31-a31e-4b4a-93e4-5f571e91255a' -ConsistencyLevel eventual
Getting following error
You are missing the -CountVariable
parameter ($count=true in the "raw" request). This works for me:
Get-MgServicePrincipal -Filter 'appOwnerOrganizationId eq f8cdef31-a31e-4b4a-93e4-5f571e91255a' -ConsistencyLevel eventual -CountVariable count