Get-AzureADOAuth2PermissionGrant -all $true not working

Welcome Forums General PowerShell Q&A Get-AzureADOAuth2PermissionGrant -all $true not working

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
5 days, 10 hours ago.

  • Author
    Posts
  • #127959

    Participant
    Points: 11
    Rank: Member

    Hi All,

    I am facing some issue with the above command. If i run Get-AzureADOAuth2PermissionGrant it will return a finite set of results. If i try to run "Get-AzureADOAuth2PermissionGrant -all $true" It is throwing the error

    Get-AzureADOAuth2PermissionGrant : Unexpected end when deserializing array. Path 'value[1000]', line 1, position 366740.
    At line:1 char:33
    + ...                           Get-AzureADOAuth2PermissionGrant -All $true
    +                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-AzureADOAuth2PermissionGrant], ApiException
    + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.GetOAuth2PermissionGrants

    If any one has the solution, please share.

    Thanks,

    Shesh

  • #127968

    Participant
    Points: 809
    Helping Hand
    Rank: Major Contributor

    Never used Azure cmdlets, but Looks like a bug.

You must be logged in to reply to this topic.