How to publish pipeline in Azure Data Factory enabled with DeVOPS GIT repo using .NET Data Factory SDK (C# )?

Nihar KN

I’m facing some issue in deploying the pipeline to Data Factory with GIT enabled (DevOps) and need someone help or advise on that.

When I deploy the pipeline through below code snippet its deploying into Data Factory Repo but instead we need to publish the code to Azure DevOps GIT Repo.

Below is a code snippet used to publish pipeline to ADF using .NET Data Factory SDK (C#)

// Authenticate and create a data factory management client

var context = new AuthenticationContext("https://login.windows.net/" + tenantID);
ClientCredential cc = new ClientCredential(applicationId, AuthenticationKey);
AuthenticationResult result = context.AcquireTokenAsync("https://management.azure.com/", cc).Result;
ServiceClientCredentials cred = new TokenCredentials(result.AccessToken);
DataFactoryManagementClient client = new DataFactoryManagementClient(cred) { SubscriptionId = subscriptionId,  };

// Below snippet deploys pipeline into data factory Repo

client.Pipelines.CreateOrUpdate(resourceGroup, dataFactoryName, pipelineName, pipeline);

But now we need to publish this pipeline code to master branch for the DevOps GIT enabled in our ADF.

Below is one code snippet I found but not sure how to set this object to data factory in deploying the pipeline to DevOps GIT.

FactoryRepoConfiguration repo = new FactoryVSTSConfiguration("account Name", "Repo name", "branch name", "/", "project name");

I have gone through many blogs but didn’t find any help on that.

So could someone please help me on this?

Nihar KN

As per Microsoft's feedback there is no SDK which can publish code directly into a GIT branch in ADF.

I have posted an idea in ADF forums to implement the same and below is the link. If anyone have a same requirements request to up vote the posted idea in below link.

https://feedback.azure.com/forums/270578-data-factory/suggestions/40195249-implement-a-net-sdk-to-publish-pipeline-code-to-a

Thanks.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to wait for Azure Data Factory pipeline to complete in Azure DevOps?

How to create a kusto activity in data factory pipeline using c# .net sdk

Azure Data Factory is Git enabled, but I don't have option to use Azure DevOps

How to trigger Azure Data Factory pipeline using PowerShell (Azure Automation)?

Azure Data Factory V2 - publish pipeline to specified folder

How to pass parameter to pipeline in azure data factory?

how to pass "Data Flow/Data Set" parameters to azure data factory pipeline from Python SDK

Azure Data Factory Pipeline Cost

How to use dynamic connectors for source data in azure data factory pipeline

How to transform a JSON data directly in a Azure Data Factory pipeline

How to resolve no access in Azure Data Factory 2 to Azure DevOps Repository

Fail to create dataset using azure sdk python for azure data factory

Remove trigger reference from pipeline in azure data factory using powershell

How to fix the data factory v2 adf_publish branch being out of sync with the master branch in azure devops

Azure Data Factory how to deploy Alerts & Metrics to other environments with DevOps

How to to do smoke testing for Azure Data Factory based pipeline

How to pass variable to Execute Pipeline in Azure Data Factory?

How to fail Azure Data Factory pipeline based on IF Task

How to increase performance of Azure Data Factory Pipeline with Integration Runtime

How to execute Power Automate at the successful completion of Azure data factory pipeline?

Rerun activity in Azure Data Factory V2 using .net sdk

Delete Multiple Azure Data Factory Pipeline

Query by date in Azure Data Factory Pipeline

Azure Data Factory Pipeline run based on parameters

Azure Data Factory Pipeline Consumption Details

Python Azure Data Factory Update Pipeline

Export and Import Single Azure Data Factory Pipeline

Executing custom activity on Azure Data Factory Pipeline

Azure Data Factory Pipeline deployment with PowerShell