@@ -237,6 +237,11 @@ available formats are:
237
237
- ` pretty-json` to emit the data as JSON with newlines, indentation, and spaces for readability.
238
238
- ` yaml` to emit the data as YAML. When you use the `--all` option, each instance is returned as a
239
239
YAML document with the `---` document separator between each returned instance.
240
+ - ` json-array` to emit the data as a single milti-line JSON array containing each object. This
241
+ option is only valid with the [--all option](#--all).
242
+ - ` pass-through` to return the data from the resource directly without wrapping it in a DSC result.
243
+ When you use this output option, the emitted JSON Line adheres to the resource's instance schema,
244
+ not the DSC get result schema.
240
245
241
246
The default output format depends on whether DSC detects that the output is being redirected or
242
247
captured as a variable :
@@ -256,7 +261,7 @@ for formatting.
256
261
` ` ` yaml
257
262
Type : string
258
263
Mandatory : false
259
- ValidValues : [json, pretty-json, yaml]
264
+ ValidValues : [json, pretty-json, yaml, json-array, pass-through ]
260
265
LongSyntax : --output-format <OUTPUT_FORMAT>
261
266
ShortSyntax : -o <OUTPUT_FORMAT>
262
267
` ` `
@@ -280,7 +285,8 @@ ShortSyntax : -h
280
285
281
286
By default, this command returns a formatted data object that includes the actual state of the
282
287
instance. When the `--all` option is specified, the command returns the formatted data for each
283
- instance.
288
+ instance. When you specify the `pass-through` output format option, the emitted data is the
289
+ unmodified output from the resource, not a DSC resource get result.
284
290
285
291
For more information about the structure of the output JSON, see
286
292
[dsc resource get result schema][04].
0 commit comments