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.
Summary of the new feature / enhancement
The current implementation of
Invoke-DscResource
always callsGet-DscResource
. If the caller already has the result ofGet-DscResource
, it should be able to pass theDscResourceInfo
object toInvoke-DscResource
and avoid the internal call toGet-DscResource
, as well as being able to pipeGet-DscResource
toInvoke-DscResource
and improve performance.Proposed technical implementation details (optional)
No response