external help file | Module Name | online version | schema |
---|---|---|---|
Pipelines.dll-Help.xml |
Pipelines |
2.0.0 |
This Cmdlet creates an Ado Template object
New-AdoTemplate [-Name] <String> [[-Parameters] <Hashtable>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Templates let you define reusable content, logic, and parameters in YAML pipelines. To work with templates effectively, you'll need to have a basic understanding of Azure Pipelines key concepts such as stages, steps, and jobs.
PS C:\> New-AdoTemplate -Name 'template.yml' -Parameters @{'Environment'='$(Environment)'}
Name Parameters
---- ----------
template.yml {[Environment, $(Environment)]}
This creates a template object on the Command line.
Required as first property. Reference to a template for this deployment.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
You can specify parameters and their data types in a template and reference those parameters in a pipeline. With templateContext, you can also pass properties to stages, steps, and jobs that are used as parameters in a template.
Type: System.Collections.Hashtable
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
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.