Release Azure Data Factory project using VSTS Release

后端 未结 1 1832
鱼传尺愫
鱼传尺愫 2020-12-21 17:29

I want to create an Azure Data Factory project in Visual Studio rather than create an Azure Data Factory directly in the Azure portal. The reason why is that I wish to have

1条回答
  •  礼貌的吻别
    2020-12-21 18:02

    You can deploy Azure Data Factory using PowerShell.

    1. Add Azure PowerShell step/task to build/release definition
    2. Simple script:

    Code:

    foreach($file in Get-ChildItem "[ProjectFolder]" -filter "LinkedService*")
    {
      New-AzureRmDataFactoryLinkedService -ResourceGroupName "ADF" -DataFactoryName "SampleFactory" -Name $file.BaseName -File $file.FullName -Force | Format-List
    }
    foreach($file in Get-ChildItem "[ProjectFolder]" -filter "DataSet*")
    {
     New-AzureRmDataFactoryDataset -ResourceGroupName "ADF" -DataFactoryName "SampleFactory" -Name $file.BaseName -File $file.FullName -Force | Format-List
    }
    foreach($file in Get-ChildItem "[ProjectFolder]" -filter "Pipeline*")
    {
     New-AzureRmDataFactoryPipeline -ResourceGroupName "ADF" -DataFactoryName "SampleFactory" -Name $file.BaseName -File $file.FullName -Force | Format-List
    }
    

    More information, you can refer to this article: Deploy Azure Data Factory using PowerShell.

    0 讨论(0)
提交回复
热议问题