-
Notifications
You must be signed in to change notification settings - Fork 523
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
Compile MOF fails with an error "Missing Argument in parameter list" #1871
Comments
Can you please provide more information about the configuration you try to compile and the used M365 DSC version? |
Well that's interesting - where's my original message? I provided all the info. The version was the last 3 versions of DSC. Updated each time to see if that would correct the issue. Config export was Intune. Error is missing argument at [System.String, that last comma shows a tilde under it meaning it doesn't like it. ParseException error is thrown. |
@gitmanphilly any chance you could update the module using this approach: Update-Module Microsoft365DSC
Update-M365DSCDependencies
Uninstall-M365DSCOutdatedDependencies This will remove old dependencies as well as older versions of M365. |
Closing due to inactivity. Please reopen this issue, if it still exists. |
I am getting this same error. Can this be re-opened. I have tried your last suggestion and still get the Missing argument in parameter list. I am specifically trying to compile a mof from an Intune/MEM export. |
Could you share your configuration so that we get a chance to reproduce? Please remove sensitive information. |
Generated with Microsoft365DSC version 1.22.720.1For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSCparam ( Configuration M365TenantConfig
} |
Just a bit of additional information about the actual type of this property: https://docs.microsoft.com/de-de/graph/api/resources/intune-deviceconfig-mediacontentratingunitedstates?view=graph-rest-1.0 {
"@odata.type": "#microsoft.graph.mediaContentRatingUnitedStates",
"movieRating": "String",
"tvRating": "String"
} |
So is the M365DSC exporting this incorrectly? |
Yes. The handling of the values of this parameter needs to be adjusted to the underlying Microsoft graph data type. |
So still trying to figure this out. So there is no simple way to export and import configurations as DSC shows in the site when using certain exports, such as MEM/Intune? If you are exporting certain parts of MEM configurations, such as the content region, then it will always error out until the .ps1 is edited correctly? I found that there are 4 different parameters throwing the same error so far. Just seeing if I am missing something or if this is indeed the case, because if so then I may rethink how I go about exporting Intune configs. |
Just regenerated the resource with the DRG and it should resolve this issue as it supports embedded classes There's other Intune resources which needs attention as generated with the first version of the DRG (I presume) - They would have the same sort of issue as what is reported here and #2195 I'll probably wait until the other PRs are approved before posting that one |
No description provided.
The text was updated successfully, but these errors were encountered: