PSDesiredStateConfiguration
PSDesiredStateConfiguration copied to clipboard
Fix duplicated resources error
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest released version
- [X] Search the existing issues.
Steps to reproduce
When a resource with the same name found in several places in PSModulePath, DSC v2 returns an error suggesting user to manually remove one of the locations. DSC should be able to automatically resolve such situation and for example use the first occurrence of the resource.
Expected behavior
N/A
Actual behavior
N/A
Error details
No response
Environment data
N/A
Version
v2
Visuals
No response
This problem caused us a lot of trouble, and in the [DscWorkshop] (https://github.com/dsccommunity/DscWorkshop) we had to introduce a number of checks and workarounds to prevent DSC from detecting the duplicates.