-
Notifications
You must be signed in to change notification settings - Fork 621
Resolve Get-TargetResource failing for MSFT_IntuneSettingCatalogCustomPolicyWindows10 #6780
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
Conversation
…TargetResource complex CIMType mapping.
… testing completed.
|
@microsoft-github-policy-service agree |
|
I seem to have an issue with deploying one of my Setting Catalog's. Putting this back into draft while I work out what's going on. |
|
It looks like the Rename-M365DSCCimInstanceParameter function isn't renaming the odataType property on the nested Settings (during Set-TargetResource). I suspect that's causing the issue I'm seeing. Let me confirm, and if so I'll raise another issue for it and link to this PR too. |
…erties object instead of the main object.
|
Everything is working fine now. @FabienTschanz, I've tested your changes, and they work fine. The issue I was seeing however was on my side, I was pulling the odataType property from the wrong location, meaning it was missing. All fixed now. |
Pull Request (PR) description
This PR updates the function that generates the Settings property on the returned MSFT_IntuneSettingCatalogCustomPolicyWindows10 object as part of the Get-TargetResource function.
I've updated the property generation so that the function is creating nested CIM instance objects instead of hash tables.
This Pull Request (PR) fixes the following issues
Get-TargetResource for MSFT_IntuneSettingCatalogCustomPolicyWindows10 fails because the LCM can't handle nested hash tables after a depth of around two or three. This is a known issue with the LCM and its inability to assign nested objects to match the schema if the object is nested too deep.
Details are captured in Issue #6092
Task list
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).