Skip to content

Unable to get AppRoleAssignedTo Data #19104

Open
@Joe-Zer0

Description

@Joe-Zer0

Description

Running Get-AzADServicePrincipal -ObjectId XXX returns MicrosoftGraphServicePrincipal which has an AppRoleAssignedTo property. But this property is empty. Trying to encourage the retrieval of AppRoleAssignedTo data I tried Get-AzADServicePrincipal -ObjectId XXX -Select AppRoleAssignedTo. This resulted in a Request Uri of https://graph.microsoft.com/v1.0/servicePrincipals/XXX?$select=AppRoleAssignedTo. But the AppRoleAssignedTo property was still empty. The correct Uri to retrieve this data is https://graph.microsoft.com/v1.0/servicePrincipals/XXX/appRoleAssignedTo.

Issue script & Debug output

N/A

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.2
PSEdition                      Core
GitCommitId                    7.2.2
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.9.0                 Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     6.0.1                 Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}

Error output

N/A

Metadata

Metadata

Assignees

Labels

AADAzAd cmdlets in Az.ResourcesService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions