Skip to content

docs: Update PSScript examples#1528

Open
Gijsreyn wants to merge 1 commit into
PowerShell:mainfrom
Gijsreyn:update-ps-examples
Open

docs: Update PSScript examples#1528
Gijsreyn wants to merge 1 commit into
PowerShell:mainfrom
Gijsreyn:update-ps-examples

Conversation

@Gijsreyn
Copy link
Copy Markdown
Collaborator

PR Summary

This pull request updates the already scaffolded examples for Microsoft.DSC.Transitional/WindowsPowerShell and Microsoft.DSC.Transitional/PowerShell.

Copilot AI review requested due to automatic review settings May 10, 2026 14:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refreshes and expands the documentation examples for the transitional PowerShellScript and WindowsPowerShellScript DSC resources, aligning the resource reference pages with clearer, more complete sample scenarios.

Changes:

  • Update resource index pages to point to the new/renamed example documents.
  • Add a new WindowsPowerShellScript example showing get/test/set patterns for Windows service state.
  • Add two new PowerShellScript examples covering basic get/set/test behavior and input/output binding patterns.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/reference/resources/Microsoft/DSC/Transitional/WindowsPowerShellScript/index.md Updates the “See also” example link to the new Windows service-state example page.
docs/reference/resources/Microsoft/DSC/Transitional/WindowsPowerShellScript/examples/manage-windows-service-state-with-powershell.md New end-to-end example demonstrating inline Windows PowerShell scripts for service state management.
docs/reference/resources/Microsoft/DSC/Transitional/PowerShellScript/index.md Updates the example link to the renamed “run a simple” example page.
docs/reference/resources/Microsoft/DSC/Transitional/PowerShellScript/examples/run-a-simple-powershell-script.md New example illustrating basic get/set/test usage and stream/log-level mapping.
docs/reference/resources/Microsoft/DSC/Transitional/PowerShellScript/examples/powershell-script-with-input-output.md New example illustrating input binding and error cases when input/param mismatch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants