diff --git a/CHANGELOG.md b/CHANGELOG.md index f135646ad5..68def4f67b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ # UNRELEASED +* AADServicePrincipal + * Fixes an issue where the service principals weren't created or updated when using ApplicationSecret to authenticate. + FIXES [#2615](https://github.com/microsoft/Microsoft365DSC/issues/2615) * PlannerBucket & PlannerPlan * Changed invalid permissions in the setting.json files FIXES [#2629](https://github.com/microsoft/Microsoft365DSC/issues/2629) diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADServicePrincipal/MSFT_AADServicePrincipal.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADServicePrincipal/MSFT_AADServicePrincipal.psm1 index 51eb878b9b..c1bb941bd1 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADServicePrincipal/MSFT_AADServicePrincipal.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADServicePrincipal/MSFT_AADServicePrincipal.psm1 @@ -299,6 +299,7 @@ function Set-TargetResource $currentParameters.Remove('Credential') | Out-Null $currentParameters.Remove('Ensure') | Out-Null $currentParameters.Remove('ObjectID') | Out-Null + $currentParameters.Remove('ApplicationSecret') | Out-Null # ServicePrincipal should exist but it doesn't if ($Ensure -eq 'Present' -and $currentAADServicePrincipal.Ensure -eq 'Absent')