| external help file | Module Name | online version | schema |
|---|---|---|---|
AzdoAPITools-help.xml |
AzDoAPITools |
2.0.0 |
Returns a YAML Prepped PSObject with the parameters and variables of a YAML pipeline based on a(n Array) of Build Definitions
Get-AzDoAPIToolsDefinitionVariablesAsYAMLPrepped [-InputDefinitions] <Array> [<CommonParameters>]
This function takes one or more Build Definition where metadata is present from Get-AzDoAPIToolsDefinitionsTaskGroupsByNamesList or Get-AzDoAPIToolsDefinitionsTaskGroupsByID and extracts the variables from it, determine whether it needs conversion and if so as a parameter or a variable and prepare it for conversion use in a YAML Pipeline. If desired use Convert-AzDoAPIToolsYamlObjectToYAMLFile to convert the extracted elements to a seperate yml file.
PS C:\> Get-AzDoAPIToolsDefinitionVariablesAsYAMLPrepped -InputDefinitions $ArrayOfBuildDefinitionsWill Take The definitions specified in $ArrayOfBuildDefinitions and for each definition will extract the variable elements from a Build Definition, determine if it needs conversion and if so as a parameter or a variable and converts them to a YAML ready PSObject.
Array of Build Definitions with MetaData to be converted to YAML Pipelines
Type: Array
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.