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

[AADAuthenticationRequirement] Export throws errors for guest users #5625

Closed
ykuijs opened this issue Jan 14, 2025 · 0 comments · Fixed by #5624 or #5628
Closed

[AADAuthenticationRequirement] Export throws errors for guest users #5625

ykuijs opened this issue Jan 14, 2025 · 0 comments · Fixed by #5624 or #5628
Assignees
Labels
Bug Something isn't working Entra ID

Comments

@ykuijs
Copy link
Member

ykuijs commented Jan 14, 2025

Description of the issue

The Export for the AADAuthenticationRequirement resource throws errors when Guest users are processed. The requirements cannot be exported for Guest users, so those need to get filtered.

Microsoft 365 DSC Version

Dev

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

N/A

Verbose logs showing the problem

[2025/01/14 09:27:43]
{InvalidOperation}
Microsoft.Graph.PowerShell.Authentication.Helpers.HttpResponseException: Response status code does not indicate success: NotFound (Not Found).
   at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
"Error retrieving data:"
at Get-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.108.1\DSCResources\MSFT_AADAuthenticationRequirement\MSFT_AADAuthenticationRequirement.psm1: line 66
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.108.1\DSCResources\MSFT_AADAuthenticationRequirement\MSFT_AADAuthenticationRequirement.psm1: line 350
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.108.1\Modules\M365DSCReverse.psm1: line 682
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.108.1\Modules\M365DSCUtil.psm1: line 1458
at <ScriptBlock>, <No file>: line 1

Environment Information + PowerShell Version

PSv5.1
@ykuijs ykuijs self-assigned this Jan 14, 2025
@ykuijs ykuijs added Bug Something isn't working Entra ID labels Jan 14, 2025
ykuijs added a commit to ykuijs/Microsoft365DSC that referenced this issue Jan 14, 2025
@ykuijs ykuijs linked a pull request Jan 14, 2025 that will close this issue
7 tasks
@NikCharlebois NikCharlebois mentioned this issue Jan 15, 2025
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Entra ID
Projects
None yet
1 participant