Related: Publishing | Main Documentation
To install the module, open PowerShell command line window and run the following lines:
Install-Module -Name azure.datafactory.tools -Scope CurrentUser
Import-Module -Name azure.datafactory.toolsIf you want to upgrade module from a previous version:
Update-Module -Name azure.datafactory.toolsGet-Module -Name azure.datafactory.toolsSource: PowerShell Gallery
- PowerShell: Windows PowerShell 5.1, PowerShell Core 6.0 and above
- Azure Module:
Az.DataFactoryPowerShell module from Microsoft - Support: Windows and Linux-based agents in Azure DevOps pipelines
The azure.datafactory.tools module simplifies Azure Data Factory CI/CD processes by:
- Creating new ADF instances if they don't exist
- Deploying all types of ADF objects (Pipelines, DataSets, Linked Services, Data Flows, Triggers, etc.)
- Automatically determining the correct deployment order
- Replacing environment-specific values via configuration files
- Stopping/starting triggers intelligently
- Deleting objects not in source code
- Supporting incremental deployments for faster CI/CD
Your ADF code should be organized in the following folder structure:
SQLPlayerDemo/
dataflow/
dataset/
integrationRuntime/
linkedService/
pipeline/
trigger/
Note: Some folders may not exist if your ADF doesn't contain those object types.
How to set up code repository? Read: Setting up Code Repository for Azure Data Factory v2
$SubscriptionName = 'Your-Subscription-Name'
Set-AzContext -Subscription $SubscriptionName
$ResourceGroupName = 'rg-devops-factory'
$DataFactoryName = 'SQLPlayerDemo'
$Location = 'NorthEurope'
$RootFolder = 'c:\GitHub\AdfName\'
Publish-AdfV2FromJson `
-RootFolder $RootFolder `
-ResourceGroupName $ResourceGroupName `
-DataFactoryName $DataFactoryName `
-Location $Location- Learn core concepts: Publishing Workflow
- Filter what to deploy: Publish Options
- Environment-specific values: Configuration & Stages
- Fine-tune deployment: Selective Deployment
- All cmdlets: Cmdlet Reference