From 51bf700c0befcc3ae9b69aa3bc98374e09bb817a Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 16 Oct 2024 16:25:34 -0400 Subject: [PATCH 1/2] Fixes --- CHANGELOG.md | 5 +++-- .../MSFT_AADApplication/MSFT_AADApplication.psm1 | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b479d5275..137fbe5e0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,14 +2,13 @@ # UNRELEASED -* IntuneDerivedCredential - * Initial release. * AADAdminConsentRequestPolicy * Initial release. * AADApplication * Fixed an issue trying to retrieve the beta instance. * Added support for OnPremisesPublishing. * Added support for ApplicationTemplate. + * Fixes an issue with granting the permissions. * AADAuthenticationRequirement * Initial release. * AADConnectorGroupApplicationProxy @@ -38,6 +37,8 @@ * IntuneAppAndBrowserIsolationPolicyWindows10 * Initial release. FIXES [#3028](https://github.com/microsoft/Microsoft365DSC/issues/3028) +* IntuneDerivedCredential + * Initial release. * IntuneDeviceConfigurationIdentityProtectionPolicyWindows10 * Added deprecation notice. * IntuneEndpointDetectionAndResponsePolicyWindows10 diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADApplication/MSFT_AADApplication.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADApplication/MSFT_AADApplication.psm1 index 4b4c6f68e7..c8e33c5291 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADApplication/MSFT_AADApplication.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADApplication/MSFT_AADApplication.psm1 @@ -971,7 +971,7 @@ function Set-TargetResource if ($needToUpdatePermissions -and -not [System.String]::IsNullOrEmpty($Permissions) -and $Permissions.Length -gt 0) { Write-Verbose -Message "Will update permissions for Azure AD Application {$($currentAADApp.DisplayName)}" - $allSourceAPIs = $Permissions.SourceAPI | Get-Unique + $allSourceAPIs = $Permissions.SourceAPI | Select-Object -Unique $allRequiredAccess = @() foreach ($sourceAPI in $allSourceAPIs) From 83005c5851e4a0ad9e47285b7e6ab49eef587cc3 Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 16 Oct 2024 16:26:58 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 137fbe5e0d..fcb0d7002c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ * Fixed an issue trying to retrieve the beta instance. * Added support for OnPremisesPublishing. * Added support for ApplicationTemplate. - * Fixes an issue with granting the permissions. + * Fixes an issue where trying to apply permissions complained about + duplicate entries. * AADAuthenticationRequirement * Initial release. * AADConnectorGroupApplicationProxy