Skip to content

Get-AzAdApplication -OwnedApplication returns an array instead of the array elements #23644

@Alex-wdy

Description

@Alex-wdy

Description

I have 46 owned applications, but instead of getting them, I get a single array that contains those 46 applications.

Get-AzADApplication | gm

TypeName: Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphApplication

Get-AzADApplication -OwnedApplication | gm

TypeName: System.Object[]

Adding the -OwnedApplication switch should not change the output type.

WeChat Image_20231204080731

Issue script & Debug output

Get-AzADApplication | gm

   TypeName: Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphApplication

Get-AzADApplication -OwnedApplication | gm

   TypeName: System.Object[]

Adding the -OwnedApplication switch should not change the output type.

Environment data

PS7.3

Module versions

Az.Resource

Error output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azure PS TeamGraph.MicrosoftTrackingWe will track status and follow internallybugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions