diff --git a/CHANGELOG.md b/CHANGELOG.md index a4a359f60c..1435c713f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ * All resources * Applying project default formatting on all files, to improve reading and troubleshooting +* AADRoleManagementPolicyRule + * Added the logic to handle filters in the Export logic flow. * EXOTransportRule * Fixed conditional logic for creation and update. * IntuneTrustedRootCertificateIOS diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleManagementPolicyRule/MSFT_AADRoleManagementPolicyRule.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleManagementPolicyRule/MSFT_AADRoleManagementPolicyRule.psm1 index a8eedd64a4..d6105f337d 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleManagementPolicyRule/MSFT_AADRoleManagementPolicyRule.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleManagementPolicyRule/MSFT_AADRoleManagementPolicyRule.psm1 @@ -487,7 +487,7 @@ function Export-TargetResource Write-Host "`r`n" -NoNewline try { - [array] $roles = Get-MgBetaRoleManagementDirectoryRoleDefinition -All + [array] $roles = Get-MgBetaRoleManagementDirectoryRoleDefinition -Filter $Filter -All $j = 1 foreach ($role in $roles)