Skip to main content

Parameterstoragejsonpatch

Properties

NameTypeDescriptionNotes
OpEnum [ "add", "remove", "replace", "move", "copy", "test" ]The operation to perform (add, remove, replace, move, copy, test)[required]
PathStringA JSON-Pointer describing the target location[required]
Value[AnyType]https://learn.microsoft.com/en-us/powershell/scripting/lang-spec/chapter-04?view=powershell-7.4The value to be used within the operations. Required for add/replace/test.[optional]
VarFromStringA JSON-Pointer describing the source location for move/copy.[optional]

Examples

  • Prepare the resource
$Parameterstoragejsonpatch = Initialize-Parameterstoragejsonpatch  -Op replace `
-Path /name `
-Value Credentials for server. `
-VarFrom /description
  • Convert the resource to JSON
$Parameterstoragejsonpatch | ConvertTo-JSON

[Back to top]