Add reference documentation for Microsoft.OpenSSH.SSHD/Windows#934
Add reference documentation for Microsoft.OpenSSH.SSHD/Windows#934Gijsreyn wants to merge 6 commits intoPowerShell:mainfrom
Conversation
598a6fe to
e0fedee
Compare
e0fedee to
fa1b824
Compare
adb4db3 to
c6dba04
Compare
| - The resource must run at least under a Windows Server 2019 or Windows 10 (build 1809) | ||
| operating system. |
There was a problem hiding this comment.
| - The resource must run at least under a Windows Server 2019 or Windows 10 (build 1809) | |
| operating system. | |
| - The resource must run under a Windows Server 2019 or Windows 10 (build 1809) operating system or | |
| later. |
| ``` | ||
|
|
||
| </details> | ||
|
|
There was a problem hiding this comment.
Missing description for this resource property - presumably it's the full configuration as an object?
There was a problem hiding this comment.
The resource is only usable with export, but requires the map property to be defined, so do users need to export it with an empty object? Does the resource use the object for filtering during an export operation?
There was a problem hiding this comment.
@tgauth mind filling in the gap here? I couldn't quickly find it from the resource.
There was a problem hiding this comment.
Missing description for this resource property - presumably it's the full configuration as an object?
Yes, exactly!
The resource is only usable with export, but requires the
mapproperty to be defined, so do users need to export it with an empty object? Does the resource use the object for filtering during an export operation?
Users do not need to export with an empty object. Schema is still a work in progress :) have an open PR that will shift to not requiring the map and simply permit additional properties
There was a problem hiding this comment.
Thanks, Tess. I'll wait for that PR to get merged and update this one.
c6dba04 to
8df2b25
Compare
8df2b25 to
3509e6b
Compare
3509e6b to
40d6808
Compare
There was a problem hiding this comment.
Pull request overview
Adds reference documentation under docs/reference/resources for the built-in OpenSSH DSC resources, intended to support issue #665 (“Document built-in resources”).
Changes:
- Adds a new reference page and example for
Microsoft.OpenSSH.SSHD/Windows. - Adds a new reference page for
Microsoft.OpenSSH.SSHD/sshd_config. - Adds (but currently leaves empty) an
sshd_configexample page referenced from the new index.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 17 comments.
| File | Description |
|---|---|
| docs/reference/resources/Microsoft/OpenSSH/SSHD/Windows/index.md | New reference doc for the Windows OpenSSH “windows-global” resource (default shell settings). |
| docs/reference/resources/Microsoft/OpenSSH/SSHD/Windows/examples/configure-default-shell-powershell.md | New example showing how to set the default shell to Windows PowerShell. |
| docs/reference/resources/Microsoft/OpenSSH/SSHD/sshd_config/index.md | New reference doc for the sshd_config resource (but currently mismatches actual resource schema/capabilities). |
| docs/reference/resources/Microsoft/OpenSSH/SSHD/sshd_config/examples/export-openssh-configuration.md | Example file referenced by the docs, but currently empty. |
| The `Microsoft.OpenSSH.SSHD/Windows` resource enables you to idempotently manage SSH server | ||
| configuration. The resource can: | ||
|
|
||
| - Add and update SSH client and server configuration settings. |
| ## Requirements | ||
|
|
||
| - The resource requires OpenSSH server and client to be installed on the Windows system. | ||
| - The resource must run in a process context that has permissions to manage the SSH server | ||
| configuration settings. | ||
| - The resource must run at least under a Windows Server 2019 or Windows 10 (build 1809) | ||
| operating system. |
| Determines whether shell arguments should be escaped. When set to `true`, the arguments provided | ||
| in `shell_arguments` will be properly escaped before being passed to the shell. |
|
|
||
| - [map](#map) - | ||
|
|
||
| - **Key properties:** <a id="key-properties"> The following properties uniquely identify an |
| differingProperties: [] | ||
| ``` | ||
|
|
||
| ## Cleanup |
There was a problem hiding this comment.
set with an empty string for the shell will also effectively clear any configured shell value, if applicable - https://github.com/PowerShell/DSC/blob/main/resources/sshdconfig/tests/defaultshell.tests.ps1#L151
PR Summary
As part of #665, this PR adds reference documentation for the Microsoft.OpenSSH.SSHD/Windows resource.
PR Context