Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AADGroup Assigned Licenses Comparison Not Working As Intended #4291

Closed
fraserdarwent opened this issue Feb 6, 2024 · 2 comments · Fixed by #4126 or #4330
Closed

AADGroup Assigned Licenses Comparison Not Working As Intended #4291

fraserdarwent opened this issue Feb 6, 2024 · 2 comments · Fixed by #4126 or #4330
Labels
Bug Something isn't working Core Engine V1.24.131.2 Version 1.24.131.2

Comments

@fraserdarwent
Copy link

fraserdarwent commented Feb 6, 2024

Description of the issue

When generating a delta between source and destination for the AADGroup resource, assigned licenses do not seem to be evaluated properly.

Microsoft 365 DSC Version

1.24.131.2

Which workloads are affected

Azure Active Directory

The DSC configuration

Source

        AADGroup "AADGroup-Users"
        {
            AssignedLicenses     = @(MSFT_AADGroupLicense { 
                DisabledPlans = @()
                SkuId         = 'ENTERPRISEPREMIUM'
            }
MSFT_AADGroupLicense { 
                DisabledPlans = @()
                SkuId         = 'EMSPREMIUM'
            }
MSFT_AADGroupLicense { 
                DisabledPlans = @()
                SkuId         = 'POWER_BI_STANDARD'
            }

Destination

        AADGroup "AADGroup-Users"
        {
            AssignedLicenses      = @(MSFT_AADGroupLicense { 
                DisabledPlans = @()
                SkuId         = 'ENTERPRISEPREMIUM'
            }
MSFT_AADGroupLicense { 
                DisabledPlans = @()
                SkuId         = 'EMSPREMIUM'
            }

I would expect the delta to show the missing POWER_BI_STANDARD license only. But instead it doesn't match the ENTERPRISEPREMIUM.



### Verbose logs showing the problem

_No response_

### Environment Information + PowerShell Version

_No response_
@fraserdarwent
Copy link
Author

image

@andikrueger
Copy link
Collaborator

Thanks for the additional information. This looks like some sorting needs to be added to the compare function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Core Engine V1.24.131.2 Version 1.24.131.2
Projects
None yet
2 participants