-
Notifications
You must be signed in to change notification settings - Fork 532
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
Changed logic to Evaluate Ensure #5657
Changed logic to Evaluate Ensure #5657
Conversation
...365DSC/DSCResources/MSFT_AADAdminConsentRequestPolicy/MSFT_AADAdminConsentRequestPolicy.psm1
Outdated
Show resolved
Hide resolved
...365DSC/DSCResources/MSFT_AADAuthenticationRequirement/MSFT_AADAuthenticationRequirement.psm1
Outdated
Show resolved
Hide resolved
Modules/Microsoft365DSC/DSCResources/MSFT_AADFilteringProfile/MSFT_AADFilteringProfile.psm1
Outdated
Show resolved
Hide resolved
...365DSC/DSCResources/MSFT_AADIdentityGovernanceProgram/MSFT_AADIdentityGovernanceProgram.psm1
Outdated
Show resolved
Hide resolved
...ft365DSC/DSCResources/MSFT_AADRoleManagementPolicyRule/MSFT_AADRoleManagementPolicyRule.psm1
Outdated
Show resolved
Hide resolved
...urces/MSFT_IntuneDeviceCompliancePolicyAndroid/MSFT_IntuneDeviceCompliancePolicyAndroid.psm1
Outdated
Show resolved
Hide resolved
...eCompliancePolicyAndroidDeviceOwner/MSFT_IntuneDeviceCompliancePolicyAndroidDeviceOwner.psm1
Outdated
Show resolved
Hide resolved
...eCompliancePolicyAndroidWorkProfile/MSFT_IntuneDeviceCompliancePolicyAndroidWorkProfile.psm1
Outdated
Show resolved
Hide resolved
...s/MSFT_IntuneDeviceCompliancePolicyWindows10/MSFT_IntuneDeviceCompliancePolicyWindows10.psm1
Outdated
Show resolved
Hide resolved
.../DSCResources/MSFT_IntuneDeviceCompliancePolicyiOs/MSFT_IntuneDeviceCompliancePolicyiOs.psm1
Outdated
Show resolved
Hide resolved
@NikCharlebois Just FYI, a couple resources are still left with the formatting. Making sure we catch all of them 💪 |
@NikCharlebois The resource |
@NikCharlebois Quick question, why was the |
There were a lot of confusion in the resources where some places where using the plural, others weren't. This was causing the performance improvements that this was meant to introduce to be completely skipped. |
@NikCharlebois But now I think we might have a problem for a couple of resources that were already using Lines 377 to 397 in fdfb259
Here, |
Rolling back for now as this is not a top priority |
@ricmestre if you have a few minutes, could you please verify this change since it touches 100+ resources. In the past, we would have a separate check in Test-TargetResource for some resources to see if the Ensure property differed (e.g, the resource didn't exist and it should have). This made for a faster evaluation in some cases, but it never actually logged any drifts in the logs. We've modify this logic so that all parameter evaluation, including the Ensure parameter, is always performed by the Test-M365DSCParameterState function instead. |
@NikCharlebois I just found out this issue #5666, I need it fixed before testing your diff. |
Looks like #5666 is fixed. Let me know once you've had a chance to look at the current PR. Thanks |
Looks like "everything" works, meaning the PR is ok to be merged but while running my tests I found other issues, I'll raise separate issues for them. |
Pull Request (PR) description
This Pull Request (PR) fixes the following issues