ConvertTo-Yaml

ConvertTo-Yaml

SYNOPSIS

Convert [PSCustomObject] to a YAML format

SYNTAX

ConvertTo-Yaml [[-Data] ] [-OutFile ] [-Options ] [-Force] []

DESCRIPTION

Convert [PSCustomObject] to a YAML format

EXAMPLES

PARAMETERS

Data

-Data <Object>
   
   Required?                    false
   Position?                    0
   Accept pipeline input?       true (ByValue)
   Parameter set name           (All)
   Aliases                      None
   Dynamic?                     false

Force

-Force
   
   Required?                    false
   Position?                    Named
   Accept pipeline input?       false
   Parameter set name           (All)
   Aliases                      None
   Dynamic?                     false

JsonCompatible

-JsonCompatible
   
   Required?                    false
   Position?                    Named
   Accept pipeline input?       false
   Parameter set name           NoOptions
   Aliases                      None
   Dynamic?                     false

Options

-Options <SerializationOptions>
   
   Required?                    false
   Position?                    Named
   Accept pipeline input?       false
   Parameter set name           Options
   Aliases                      None
   Dynamic?                     false

OutFile

-OutFile <string>
   
   Required?                    false
   Position?                    Named
   Accept pipeline input?       false
   Parameter set name           (All)
   Aliases                      None
   Dynamic?                     false

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Last updated