external help file | GeneratedBy | Module Name | online version | schema |
---|---|---|---|---|
PSDSC-help.xml |
Sampler update_help_source task |
PSDSC |
2.0.0 |
Convert DSC Configuration (v1/v2) Document to YAML.
ConvertTo-DscYaml -Path <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
ConvertTo-DscYaml -Content <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
The function ConvertTo-DscYaml converts a DSC Configuration Document (v1/v2) to YAML.
$path = 'myConfig.ps1'
PS C:\> ConvertTo-DscYaml -Path $path
The content to a valid DSC Configuration Document.
Type: String
Parameter Sets: Content
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The file path to a valid DSC Configuration Document.
Type: String
Parameter Sets: Path
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.