-
Notifications
You must be signed in to change notification settings - Fork 520
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
IntuneDeviceConfigurationAdministrativeTemplatePolicyWindows10: Not all properties are printed correctly to the blueprint #3634
Comments
This is not happening on 1.23.823.1 so this is either caused by the changes to Get-M365DSCDRGComplexTypeToString in commit 61260b5 and/or the changes made in ReverseDSC 2.0.0.18. |
@NikCharlebois You've raised PR #3647 to fix an issue on AADAuthenticationMethodPolicyAuthenticator but this is affecting other resources as well such as IntuneDeviceConfigurationAdministrativeTemplatePolicyWindows10 and probably others, could we get a permanent fix for all of them instead? Like I mention in my previous comment this issue started happening after 1.23.823.1. |
The formating fix for #3645 uses a general string replace to achieve the desired result:
This may also work for the formatting for: But I am also experiencing the issue with the following: I see in M365DSCDRGUtil.psm1, the Remove-M365DSCCimInstanceTrailingCharacterFromExport function looks to clean up the DSCBlock formatting so perhaps we can add something like:
|
Any news about this issue? This is affecting other resources and also other cmdlets such as New-M365DSCReportFromConfiguration reported on #3640. Please get a generic fix, not a workaround as done on #3647 otherwise the problem will still happen on other places. Furthermore, currently due to other unrelated issue, happening on another version, plus this one I'm still stuck on version 1.23.726.1 on our servers and cannot update so I'd appreciate this to be looked at. |
Details of the scenario you tried and the problem that is occurring
After an export on at least resource IntuneDeviceConfigurationAdministrativeTemplatePolicyWindows10, this most likely affects others as well, some properties are not being placed in the correct lines (basically missing
`r`n
) which then ConvertTo-DSCObject complains about.In this specific case the problem is with property Enabled which is inside CIMInstance MSFT_IntuneGroupPolicyDefinitionValue
Verbose logs showing the problem
Suggested solution to the issue
Ensure a new line is added per each new property of the resource
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Win10
Version of the DSC module that was used ('dev' if using current dev branch)
1.23.830.1
The text was updated successfully, but these errors were encountered: