< Back

ConvertTo-GzYaml

Tue Jan 14, 2020 12:32 am

NAME ConvertTo-GzYaml



SYNOPSIS

Converts the object to a YAML string





SYNTAX

ConvertTo-GzYaml [-InputObject] <Object> [<CommonParameters>]





DESCRIPTION

Converts a PsCustomObject, PsObject, IDictionary, or IList object

to a YAML string.





PARAMETERS

-InputObject <Object>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Object





OUTPUTS

String





NOTES





This function leverages YamlDotNet



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$yml = $obj | ConvertTo-GzYaml















RELATED LINKS