Initial support for generating a configuration file from machine configuration by AmelBawa-msft · Pull Request #2466 · microsoft/devhome (original) (raw)
Summary of the pull request
Initial support for generating a configuration file from the machine configuration flow.
Limitation in this PR:
- Exporting Dev Drive DSC task is not available in this PR.
- Exporting repositories uses git. (we should figure out a way to distinguish which version control tech is used, maybe include this info in the SDK?)
References and relevant issues
Detailed description of the pull request / Additional comments
Validation steps performed
Selecting an already installed app
Review page allows downloading the generated configuration file
Generated file:
yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
Reference: https://github.com/microsoft/winget-create#building-the-client
WinGet Configure file Generated By Dev Home.
properties: resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage directives: description: Installing Microsoft.VisualStudio.2022.Community allowPrerelease: true settings: id: "Microsoft.VisualStudio.2022.Community" source: winget id: Microsoft.VisualStudio.2022.Community
- resource: Microsoft.WinGet.DSC/WinGetPackage directives: description: Installing Microsoft.SQLServerManagementStudio allowPrerelease: true settings: id: "Microsoft.SQLServerManagementStudio" source: winget id: Microsoft.SQLServerManagementStudio
- resource: Microsoft.WinGet.DSC/WinGetPackage directives: description: Installing Git allowPrerelease: true settings: id: "Git.Git" source: winget id: Git.Git
- resource: GitDsc/GitClone
directives:
description: 'Cloning: devhome'
allowPrerelease: true
settings:
httpsUrl: https://github.com/microsoft/devhome.git
rootDirectory: E:\devhome
id: 'Clone devhome: E:\devhome'
dependsOn:
- Git.Git configurationVersion: 0.2.0
PR checklist
- Closes Dev Home Feature Exploration: Dev Home machine configuration generates a configuration file #2160
- Tests added/passed
- Documentation updated


