Skip to content

Commit 2d2a543

Browse files
Merge pull request #6399 from FabienTschanz/fix/accesspackagewith
Fix population of AccessPackagesIncompatibleWith
2 parents be7d837 + fe7fcf5 commit 2d2a543

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
* AADCrossTenantAccessPolicyConfigurationDefault
1111
* Fixed an issue where the export returns an invalid value for `Targets`.
1212
FIXES [#6397](https://github.com/microsoft/Microsoft365DSC/issues/6397)
13+
* AADEntitlementManagementAccessPackage
14+
* Fixed an issue where `AccessPackagesIncompatibleWith` would not be populated with a value.
15+
FIXES [#5063](https://github.com/microsoft/Microsoft365DSC/issues/5063)
1316
* AADServicePrincipal
1417
* Fixes for retrieving instance by name.
1518
* AADUser

Modules/Microsoft365DSC/DSCResources/MSFT_AADEntitlementManagementAccessPackage/MSFT_AADEntitlementManagementAccessPackage.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function Get-TargetResource
169169
[Array]$query = Get-MgBetaEntitlementManagementAccessPackageIncompatibleWith -AccessPackageId $getValue.id
170170
if ($query.count -gt 0)
171171
{
172-
$getIncompatibleAccessPackages += $query.id
172+
$getAccessPackagesIncompatibleWith += $query.id
173173
}
174174

175175
$getIncompatibleGroups = @()
@@ -954,4 +954,3 @@ function Export-TargetResource
954954
}
955955

956956
Export-ModuleMember -Function *-TargetResource
957-

0 commit comments

Comments
 (0)