-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate configuration from machine state #3274
Comments
I might suggest improving the title so that a search finds it? "Reverse DSC" doesn't really allow someone who isn't on the team to understand it, and it would probably result in fewer duplicate bugs. |
The work over at the PowerShell/DSC GitHub project is tracked via: |
This would depend on: We're thinking something like: For getting the configuration from a single package (we're also thinking about a set of packages) For getting the entire configuration from all installed packages |
Description of the new feature / enhancement
I want to be able to generate a configuration based on my current machine.
Reference work:https://devblogs.microsoft.com/scripting/reverse-desired-state-configuration-how-it-works/There is likely some needed work to enable reverse DSC.We would need to "inspect" the current system, pull down associated DSC resources, and generate a configuration.Customer verbatim
jouni nieminen
Proposed technical implementation details
winget configure export <path to file>
This would iterate over installed packages and generate a WinGet Configuration.
If an associated DSC resource is present in the manifest for the package, it would call "export" via DSC v3 and add the configuration as a dependency on install (using Microsoft.WinGet.DSC).
Additionally, the export could include the Windows Settings using Microsoft.Windows.Developer.
Depends on:
export
scenario PowerShell/DSC#73The text was updated successfully, but these errors were encountered: