PsDataFactory is a PowerShell module to generate DataFactory pipelines and datasets.
Exports a dataset as a JSON file.
Export-AdfDataset [-Dataset] <Object> [-DatasetsDirectory] <DirectoryInfo> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Serializes the dataset to JSON and writes it to a file named after the dataset in the existing destination directory. Outputs the resulting file path.
$dataset | Export-AdfDataset -DatasetsDirectory (Get-Item .\datasets)
Writes the dataset JSON file to the datasets directory.
The dataset to serialize.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The existing directory in which to write the dataset JSON file.
Type: DirectoryInfo
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
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/Export-AdfDataset.html