diff --git a/CHANGELOG.md b/CHANGELOG.md index 689d93d972..edc3cc72aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ * AADConditionalAccessPolicy * Added support for application filters in the conditions. +# UNRELEASED +* AADConditionalAccessPolicy + * FIXES [[#3885](https://github.com/microsoft/Microsoft365DSC/issues/3885)] + # 1.24.103.1 * AADConditionalAccessPolicy diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADConditionalAccessPolicy/MSFT_AADConditionalAccessPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADConditionalAccessPolicy/MSFT_AADConditionalAccessPolicy.psm1 index 02171c139e..17df78d577 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADConditionalAccessPolicy/MSFT_AADConditionalAccessPolicy.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADConditionalAccessPolicy/MSFT_AADConditionalAccessPolicy.psm1 @@ -958,7 +958,7 @@ function Set-TargetResource { $conditions.Applications.Add('IncludeApplications', $IncludeApplications) } - if ($ExcludeApplications) + if ($currentParameters.ContainsKey("ExcludeApplications")) { $conditions.Applications.Add('ExcludeApplications', $ExcludeApplications) }