-
Notifications
You must be signed in to change notification settings - Fork 532
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
IntuneAppProtectionPolicyAndroid Assignments are broken #5808
Comments
@dannyKBjj I already reported this issue here #5675 |
Oh interesting, so this is due to code changes? I was thinking of simply updating it to handle assignments the way every other module does, as it seemed mad this module handles it differently? I have seen the same problem in IntuneAppProtectionPolicyiOS as well. |
No one moved forward to do that yet, but also because such change would be considered a breaking change so it's always a few months away from being accepted, next opening window to get that in is next April. |
Hi, why is it a breaking change? Because we're thinking we need to edit Get-IntuneAppProtectionPolicyiOSAssignment? At first look editing the module to use Get-MgDeviceAppManagementiOSManagedAppProtectionAssignment will likely fix it? I thought breaking changes didn't include update/editing the existing modules? But I guess there's a reason this wasn't done in the first place? Either way, I'm currently doing this, but if I'm wasting my time I'll stop :-D |
The Assignments and ExcludedGroups properties right now for those resources are String[], for all other Intune resources are CIMInstances[] which means that someone with a blueprint from today with |
Ah, Ok I get it thanks! |
Description of the issue
IntuneAppProtectionPolicyAndroid is unable to enforce 'inclusion' and 'exclusion' groups. In some circumstances it will cause an error
To replicate the issue:
Expected: assignment is recreated
Actual: assignment is not recreated, no error occurs. Test-DscConfiguration still shows 'true'
Code will completely fail if you do this:
Expected: assignment are recreated
Actual: error message copied below (verbose logs section).
Note: looking at the code this module seems to handle assignments in different way to every other module I've seen, except 'IntuneAppProtectionPolicyiOS' (which I'll be raising another issue for).
Microsoft 365 DSC Version
1.25.212.2
Which workloads are affected
Intune
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: