diff --git a/CHANGELOG.md b/CHANGELOG.md index 0caf84fabf..cd4eac8828 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ * Fix issue with deploying/creating a new AU with members and/or adding members to an existing AU FIXES [#4404](https://github.com/microsoft/Microsoft365DSC/issues/4404) * Updated examples to include setting Visibility and ScopedRoleMembers + * Fix issue with Set-TargetResource was failing to apply when Verbose is set + FIXES [#4497](https://github.com/microsoft/Microsoft365DSC/issues/4497) * All resources * Fix issue where Ensure cannot be left as default 'Present' * AADAdministrativeUnit diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADAdministrativeUnit/MSFT_AADAdministrativeUnit.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADAdministrativeUnit/MSFT_AADAdministrativeUnit.psm1 index 8d71e5fe47..7a94fad632 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADAdministrativeUnit/MSFT_AADAdministrativeUnit.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADAdministrativeUnit/MSFT_AADAdministrativeUnit.psm1 @@ -372,6 +372,7 @@ function Set-TargetResource $PSBoundParameters.Remove('TenantId') | Out-Null $PSBoundParameters.Remove('CertificateThumbprint') | Out-Null $PSBoundParameters.Remove('ManagedIdentity') | Out-Null + $PSBoundParameters.Remove('Verbose') | Out-Null $backCurrentMembers = $currentInstance.Members $backCurrentScopedRoleMembers = $currentInstance.ScopedRoleMembers