You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, the Get-Method will return Absent and therefor we will directly jump into the else block. This will result in a new user bein created, even if it should not be created.
AAD Users with Ensure set to Absent are removed and recreated every next run after removal.
The logic is correct when the resource exists, but if it doesn't it will just create it although Ensure is set to Absent
Microsoft365DSC/Modules/Microsoft365DSC/DSCResources/MSFT_AADUser/MSFT_AADUser.psm1
Line 416 in 6c61af4
A condition
if ($Ensure -eq 'Present')
is missing on line 421The text was updated successfully, but these errors were encountered: