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

AADServicePrincipal fails on Managed Identities when DelegatedPermissions returns 500 response #5359

Open
mpoulson opened this issue Nov 7, 2024 · 0 comments

Comments

@mpoulson
Copy link
Contributor

mpoulson commented Nov 7, 2024

Description of the issue

When performing export or Get-TargetResource Service Principals which are Managed Identities throw error when Entra returns response code 500 on call to https://graph.microsoft.us/v1.0/servicePrincipals/$($AADServicePrincipal.Id)/delegatedPermissionClassifications

Microsoft 365 DSC Version

1.24.1106.1

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

No response

Verbose logs showing the problem

[2024/11/07 11:27:48]
{InvalidOperation}
Microsoft.Graph.PowerShell.Authentication.Helpers.HttpResponseException: Response status code does not indicate success: InternalServerError (Internal Server Error).
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
"Error retrieving data:"
at Get-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1106.1\DSCResources\MSFT_AADServicePrincipal\MSFT_AADServicePrincipal.psm1: line 241
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1106.1\DSCResources\MSFT_AADServicePrincipal\MSFT_AADServicePrincipal.psm1: line 1020
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1106.1\Modules\M365DSCReverse.psm1: line 682
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1106.1\Modules\M365DSCUtil.psm1: line 1460
at , : line 1

Environment Information + PowerShell Version

No response

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

1 participant