Add enable_ps_ssh_remoting.dsc.yaml config to package#1572
Open
SteveL-MSFT wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a Windows example DSC configuration intended to install PowerShell 7 and OpenSSH Server and configure PowerShell remoting over SSH, and wires that example into the Windows package file lists so it ships with build artifacts.
Changes:
- Add
enable_ps_ssh_remoting.dsc.yamlunderconfigurations/windows/. - Include the new YAML in
configurations/windowsproject copy list. - Add the YAML to the Windows
PackageFileslist so it’s included in packaged outputs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
data.build.json |
Adds the new configuration YAML to the Windows package file list. |
configurations/windows/enable_ps_ssh_remoting.dsc.yaml |
New example configuration for PS7 + OpenSSH + SSH remoting setup. |
configurations/windows/.project.data.json |
Ensures the new YAML is copied as part of the configurations/windows project. |
Comment on lines
+7
to
+11
| - name: Install PowerShell 7 | ||
| type: Microsoft.WinGet/Package | ||
| properties: | ||
| _exist: true | ||
| id: Microsoft.PowerShell |
Comment on lines
+1
to
+2
| # Installs PowerShell 7 and OpenSSH Server | ||
| # Enable PowerShell 7 remoting over SSH |
Comment on lines
+15
to
+17
| capabilities: | ||
| - identity: OpenSSH.Server~~~~0.0.1.0 | ||
| state: Installed |
Comment on lines
+51
to
+55
| profiles: | ||
| - Private | ||
| grouping: OpenSSH Server | ||
| interfaceTypes: | ||
| - All |
Comment on lines
6
to
10
| "Windows": [ | ||
| "enable_ps_ssh_remoting.dsc.yaml", | ||
| "windows_baseline.dsc.yaml", | ||
| "windows_inventory.dsc.yaml" | ||
| ] |
Comment on lines
+3
to
+6
| $schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json | ||
| directives: | ||
| resourceDiscovery: duringDeployment | ||
| resources: |
Comment on lines
+39
to
+43
| rules: | ||
| - name: OpenSSH SSH Server (sshd) | ||
| description: Inbound rule for OpenSSH SSH Server (sshd) | ||
| applicationName: "[concat(systemRoot(), 'WINDOWS\\system32\\OpenSSH\\sshd.exe')]" | ||
| protocol: 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
Add the example config I used at PSSummit to install PS7/OpenSSH server and configure it for PS7 remoting over SSH