Skip to main content

Spconfigrule

Properties

NameTypeDescriptionNotes
PathStringJSONPath expression denoting the path within the object where a value substitution should be applied.[optional]
ValueSpconfigruleValue[optional]
Modes[]StringDraft modes the rule will apply to.[optional]

Examples

  • Prepare the resource
$Spconfigrule = Initialize-Spconfigrule  -Path $.enabled `
-Value null `
-Modes ["RESTORE","PROMOTE"]
  • Convert the resource to JSON
$Spconfigrule | ConvertTo-JSON

[Back to top]