-
Notifications
You must be signed in to change notification settings - Fork 531
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
Multiple resources missing mandatory parameters causing Get-M365DSCResourceKey
to fail
#2925
Comments
Thanks for the list of resources. We should fix the resources to align with the schema files. |
The problem is that the schema files are missing a "Key", for instance MSFT_EXOIRMConfiguration.schema.mof:
|
On it right now. This looks like it is going to be a breaking change as we change the required parameters. On the other hand, these params had to be set for those resources to work... @William-Francillette Could you have a look at this issue as well as there are many resource within that were created with the DRG. I kind of get the feeling, that somehow the KEYs are not properly selected for those resource. I would wait for your feedback. |
I pushed my first changes to this branch: https://github.com/andikrueger/Microsoft365DSC/tree/issue2925 @NikCharlebois Is this going to be a breaking change? I kind of get the feeling, that we could proceed with these changes without waiting for the First April Release... |
This is definitely a breaking change, since it will require parameters that might not have been provided earlier. I am working on adding a QA test to check if all resources have at least on key parameter. Will submit a PR for that as well, which also fixes this issue for all resources. This PR can't be merged until out next breaking changes release (April 5th). |
Details of the scenario you tried and the problem that is occurring
When creating DeltaReports,
Get-M365DSCResourceKey
is used, but fails on resources that are not defined with mandatory params.outputs:
Verbose logs showing the problem
n/a
Suggested solution to the issue
Each resource should define at least one mandatory parameter, but as a quick fix, perhaps:
The DSC configuration that is used to reproduce the issue (as detailed as possible)
(Any call to New-M365DSCDeltaReport that includes one or more of the resources listed above)
The operating system the target node is running
n/a
Version of the DSC module that was used ('dev' if using current dev branch)
Dev
The text was updated successfully, but these errors were encountered: