Skip to content

docs: add examples for validating minimum operating system version with Microsoft/OSInfo#1623

Open
Gijsreyn wants to merge 1 commit into
PowerShell:mainfrom
Gijsreyn:gh-1603/main/update-osinfo-docs
Open

docs: add examples for validating minimum operating system version with Microsoft/OSInfo#1623
Gijsreyn wants to merge 1 commit into
PowerShell:mainfrom
Gijsreyn:gh-1603/main/update-osinfo-docs

Conversation

@Gijsreyn

Copy link
Copy Markdown
Collaborator

PR Summary

This pull request updates the Microsoft/OSInfo with the version comparisons implemented in #1603, including an example added.

PR Context

After addressing #1603.

Copilot AI review requested due to automatic review settings July 11, 2026 13:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Microsoft/OSInfo resource reference docs to reflect the newly implemented test operation and to document/version-example the version comparison constraint support added in #1603.

Changes:

  • Update Microsoft/OSInfo resource reference to describe native test behavior and version constraint syntax.
  • Add a new example demonstrating enforcing a minimum OS version via Microsoft.DSC/Assertion.
  • Wire the new example into the resource docs “Examples” list.

Reviewed changes

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

File Description
docs/reference/resources/Microsoft/OSInfo/index.md Updates resource description/capabilities and documents version comparison constraints; links the new example.
docs/reference/resources/Microsoft/OSInfo/examples/validate-minimum-version.md Adds a new walkthrough example and sample output for minimum-version validation.
docs/reference/resources/Microsoft/OSInfo/examples/validate-minimum-version.config.dsc.yaml Adds the DSC configuration document used by the new example.

Comment on lines +49 to +51
The resource implements the [test operation][01]. The test operation compares every specified
instance property to the actual operating system information. The `version` property supports
version comparison constraints; all other properties use case-sensitive equality comparison.
Comment on lines 87 to +89
1. [Validate operating system information with dsc resource][03]
1. [Validate operating system information in a configuration][04]
1. [Validate a minimum operating system version in a configuration][07]
family: Windows
version: 10.0.26200
edition: Windows 11
bitness: 64
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