DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Use fuzzy matching for some error cases

Open SteveL-MSFT opened this issue 8 months ago • 0 comments

Summary of the new feature / enhancement

One use case that was hit recently is someone was switching between using WindowsPowerShell and PowerShell 7 and the module with the DSC resource they were using was only installed for PowerShell 7, but they specified Windows PowerShell. In this specific case, it was not obvious to them why DSC reported that the module was not found.

Proposed technical implementation details (optional)

Although it might not help in this specific case, it might help generally when people are handcrafting configurations and making typos particularly where it's case-sensitive. So there may be places like resource type names, resource properties where we can apply a fuzzy match to tell the user "did you mean X?" instead of just reporting that "Y didn't match the schema" or "Y was unexpected".

SteveL-MSFT avatar Apr 22 '25 20:04 SteveL-MSFT