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

AADFeatureRolloutPolicy: Get-TargetResource doesn't find policies already created #5521

Closed
ricmestre opened this issue Dec 6, 2024 · 0 comments · Fixed by #5522 or #5538
Closed

AADFeatureRolloutPolicy: Get-TargetResource doesn't find policies already created #5521

ricmestre opened this issue Dec 6, 2024 · 0 comments · Fixed by #5522 or #5538

Comments

@ricmestre
Copy link
Contributor

Description of the issue

This resource has the same issue as I reported for AADClaimsMappingPolicy, it cannot find existing policies because it's filtering them for an $_.AdditionalProperties.'@odata.type' which is empty.

I'll raise a PR to fix this.

Microsoft 365 DSC Version

1.24.1204.1

Which workloads are affected

other

The DSC configuration

AADFeatureRolloutPolicy "AADFeatureRolloutPolicy-AADFeatureRolloutPolicy_1"
        {
            ApplicationId           = $AADApplicationId;
            CertificateThumbprint   = $AADCertThumbprint;
            Description             = "AADFeatureRolloutPolicy_1";
            DisplayName             = "AADFeatureRolloutPolicy_1";
            Ensure                  = "Present";
            Feature                 = "certificateBasedAuthentication";
            Id                      = "200e89d5-2862-42a6-b786-3f98dddca3a5";
            IsAppliedToOrganization = $False;
            IsEnabled               = $True;
            TenantId                = $OrganizationName;
        }

Verbose logs showing the problem

N/A

Environment Information + PowerShell Version

Win11/PS5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant