Property rules

Merge-PropertyRules

Synopsis

Merge a directory of snippets.

Syntax

Merge-PropertyRules [-SourceDirectory] <String> [-DefaultRuleFilename <String>] [-OutputToFile] [-OutputFileName <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Merges a snippets directory and outputs it to the PSCustomObject or a single JSON file using the -OutputToFile parameter and optionally the -OutputFilename parameter. You also need to provide the -SourceDirectory parameter and optionally the -DefaultRuleFilename parameter, which defaults to main.json.

Parameters

‑DefaultRuleFilename

The JSON file containing the default rule of your property. Defaults to main.json.

‑OutputFileName

A JSON filename to save the retrieved rule tree.

‑OutputToFile

An output rule tree as a single JSON file.

‑SourceDirectory
Required

A source directory to read JSON snippets from.

Related Links

User Guide: Property