MicrosoftDocs / PowerShell-Docs-DSC

Documentation for PowerShell Desired State Configuration
https://learn.microsoft.com/powershell/dsc/overview
Creative Commons Attribution 4.0 International
28 stars 35 forks source link

Dsc Script Resource docs should discourage use #224

Closed SteveL-MSFT closed 9 months ago

SteveL-MSFT commented 9 months ago

Prerequisites

Links

https://learn.microsoft.com/en-us/powershell/dsc/reference/resources/windows/scriptresource?view=dsc-1.1

Summary

We should provide guidance when the script resource is appropriate to use. In general, before considering using the script resource, the user should consider if they can just turn the script they were going to use into a script-based resource. Use of scripts within config breaks the declarative model and makes idempotency much harder.

Details

No response

Suggested Fix

No response

sdwheeler commented 9 months ago

@SteveL-MSFT This issue belongs in MicrosoftDocs/PowerShell-Docs-DSC. I will move it.