Skip to content

Command Test DatumConfiguration

Michael Zanatta edited this page Sep 16, 2026 · 1 revision

Test-DatumConfiguration

Synopsis

Validates the Datum Configuration to ensure it meets the required standards.

Description

The Test-DatumConfiguration function validates the Datum Configuration object to ensure it contains the necessary properties and that the versioning is correct. It checks for the presence of the PipelineRunnerSettings property, validates the versioning of the Datum Configuration, and ensures that the versions are within the acceptable range.

Parameters

Name Type Required Description
Datum Object Yes The Datum Configuration object that needs to be validated. This parameter is mandatory.

Examples

Example 1

$datumConfig = Get-DatumConfiguration
Test-DatumConfiguration -Datum $datumConfig

This example retrieves a Datum Configuration object and validates it using the Test-DatumConfiguration function.

Notes

The function throws an error if the Datum Configuration is invalid or if any of the version checks fail. It also provides verbose output for each validation step and a warning if the Datum Configuration version is two or more minor versions behind the current PSDesiredStateConfiguration version.

Clone this wiki locally