PsDataFactory is a PowerShell module to generate DataFactory pipelines and datasets.
Adds a variable definition to a pipeline.
Add-AdfVariable -Pipeline <PSObject> [-Name] <String> [-Type] <String> [-DefaultValue <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Adds a variable with the specified type to the pipeline’s variables collection. If a non-empty default value is provided, it is added to the variable definition.
$pipeline | Add-AdfVariable -Name 'RecordCount' -Type 'Int'
Adds an Int variable named RecordCount.
The pipeline to update.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The variable name.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The variable type.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
An optional default value for the variable.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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.
https://abbgrade.github.io/PsDataFactory/docs/Add-AdfVariable.html