简体   繁体   中英

Azure Data factory CI/CD

I have my ADF files built using Visual studio and need to build continuous deployment for this using VSTS ..I have my ADF files and PowerShell in a single solution. But in my PowerShell script how can I refer the ADF files. What should be the path instead of C:/users/ . Where I can find this path in my build. Hope this is clear

foreach($file in Get-ChildItem "C:/users/" -filter "*LinkedService*")
{
  New-AzureRmDataFactoryLinkedService -ResourceGroupName "ADFAutomationResource" -DataFactoryName "ADFCICD190218" -Name $file.BaseName -File $file.FullName -Force | Format-List
}

In your build, in the "Copy and Publish Build Artifacts" step, add the data factory folder like this: **\\DataFactoryFolder\\*.json

In your release you can pass the folder location to your PowerShell script by using the following variable:

$(System.DefaultWorkingDirectory)/DataFactory

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM