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

AAD Domain: bad condition in Set-TargetResource #5886

Closed
FJanneau opened this issue Mar 7, 2025 · 0 comments · Fixed by #5888 or #5911
Closed

AAD Domain: bad condition in Set-TargetResource #5886

FJanneau opened this issue Mar 7, 2025 · 0 comments · Fixed by #5888 or #5911

Comments

@FJanneau
Copy link

FJanneau commented Mar 7, 2025

Description of the issue

Bug in line 248:
The following condition is always true.
if (-not [System.String]::IsNullOrEmpty('PasswordNotificationWindowInDays'))

It should test the variable, not the string:
if (-not [System.String]::IsNullOrEmpty($PasswordNotificationWindowInDays))

Microsoft 365 DSC Version

V1.25.305.1

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

Verbose logs showing the problem

Environment Information + PowerShell Version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant