PowerShell / PSDesiredStateConfiguration

Source for https://www.powershellgallery.com/packages/PSDesiredStateConfiguration module
MIT License
60 stars 14 forks source link

Add a new parameter set to Invoke-DscResource that takes a DscResourceInfo #100

Open msftrubengu opened 1 year ago

msftrubengu commented 1 year ago

Summary of the new feature / enhancement

The current implementation of Invoke-DscResource always calls Get-DscResource. If the caller already has the result of Get-DscResource, it should be able to pass the DscResourceInfo object to Invoke-DscResource and avoid the internal call to Get-DscResource, as well as being able to pipe Get-DscResource to Invoke-DscResource and improve performance.

Proposed technical implementation details (optional)

No response

anmenaga commented 1 year ago

Should this be implemented for v2 and/or v3?