You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both CurrentValues and DesiredValues can have properties set to null but if they are fed as input into Compare-PSCustomObjectArrays then the following error message may be triggered. This can be tested with the configuration present here, the error in this case is triggered by the null CIM instance RestrictedApps.
Cannot bind argument to parameter 'CurrentValues' because it is an empty array.
+ CategoryInfo : InvalidData: (:) [], CimException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyArrayNotAllowed,Compare-PSCustomObjectArrays+ PSComputerName : localhost
This issue was actually fixed earlier by @FabienTschanz but during the merge of my fix c274781 the branch wasn't updated and his fix was lost, I'll raise a PR to put it back in.
Description of the issue
Both
CurrentValues
andDesiredValues
can have properties set to null but if they are fed as input intoCompare-PSCustomObjectArrays
then the following error message may be triggered. This can be tested with the configuration present here, the error in this case is triggered by the null CIM instanceRestrictedApps
.This issue was actually fixed earlier by @FabienTschanz but during the merge of my fix c274781 the branch wasn't updated and his fix was lost, I'll raise a PR to put it back in.
Microsoft 365 DSC Version
1.24.731.1
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: