Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Get-PnPTenantServicePrincipal, Get-PnPTenantServicePrincipalPermissionGrants, Enable-PnPTenantServicePrincipal and Disable-PnPTenantServicePrincipal fails with "Unkown Error" #3954

Open
5 tasks
ryder-cayden opened this issue May 14, 2024 Discussed in #3879 · 1 comment

Comments

@ryder-cayden
Copy link

ryder-cayden commented May 14, 2024

When I run the Get-PnPTenantServicePrincipal, Get-PnPTenantServicePrincipalPermissionGrants, Enable-PnPTenantServicePrincipal and Disable-PnPTenantServicePrincipal, I get "Unkown error".

With PnP debug log I get this output:

pwsh Error: 0 : 2024-05-14 15:57:42.4400 [PnP.Framework] [0] [Error] ExecuteQuery threw following exception: Microsoft.SharePoint.Client.ServerException: Unknown Error
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServerAsync(ChunkStringBuilder sb)
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)
ServerErrorCode: -1
ServerErrorTypeName: Microsoft.SharePoint.Client.UnknownError
ServerErrorTraceCorrelationId: 04b828a1-a099-5000-9591-19941115384a
ServerErrorValue:
ServerErrorDetails:
. 0ms

Expected behavior

I expect the call to succeed.

What is the version of the Cmdlet module you are running?

I tried that with PnP PowerShell 2.3.0 and 2.4.0

Which operating system/environment are you running PnP PowerShell on?

  • [x ] Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@ryder-cayden ryder-cayden changed the title [BUG] Get-PnPTenantServicePrincipal fails with "Unkown Error" [BUG] Get-PnPTenantServicePrincipal, Get-PnPTenantServicePrincipalPermissionGrants, Enable-PnPTenantServicePrincipal and Disable-PnPTenantServicePrincipal fails with "Unkown Error" May 15, 2024
@reshmee011
Copy link
Contributor

It is an issue with the underlying endpoint. I raised a Microsoft case for the issue related to the SPO PowerShell equivalent
"Get-SPOTenantServicePrincipalPermissionGrants". The Microsoft case was closed after the right engineering team was involved and was unable to give a timeline when the fix would be available.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants