< Back

ConvertFrom-GzYaml

Tue Jan 14, 2020 12:32 am

NAME ConvertFrom-GzYaml



SYNOPSIS

Converts a YAML string to a PsCustomObject





SYNTAX

ConvertFrom-GzYaml [[-InputObject] <String>] [<CommonParameters>]





DESCRIPTION

Converts a YAML string to a PsCustomObject





PARAMETERS

-InputObject <String>



Required? false

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

String





OUTPUTS

PsCustomObject





NOTES





This function leverages YamlDotNet



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



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















RELATED LINKS