Azure Data Factory libraries for .NET

Overview

Azure Data Factory is a cloud-based data integration service. It enables you to create data-driven workflows in the cloud to orchestrate and automate data movement and data transformation.

To learn more, read the Introduction to Azure Data Factory.

Management library - Data Factory V2 (Preview)

Use the management library to create and schedule data-driven workflows (pipelines) in Data Factory V2 (Preview). For more information, see Create a data factory and pipeline using .NET SDK.

Install the NuGet package directly from the Visual Studio Package Manager console or with the .NET Core CLI.

Visual Studio Package Manager

# Get the most recent prerelease package
Install-Package Microsoft.Azure.Management.DataFactory -Prerelease
# Be sure to include the most recent version from the NuGet package page
dotnet add package Microsoft.Azure.Management.DataFactory --version 0.2.0-preview

Code Example

The following example uses the management library to create a data factory.

/*
using Microsoft.Azure.Management.ResourceManager;
using Microsoft.Azure.Management.DataFactory;
using Microsoft.Azure.Management.DataFactory.Models;
*/

DataFactoryManagementClient client = new DataFactoryManagementClient(tokenCredentials) { SubscriptionId = subscriptionId };
Factory dataFactory = new Factory
{
    Location = region,
    Identity = new FactoryIdentity()
};
client.Factories.CreateOrUpdate(resourceGroup, dataFactoryName, dataFactory);

Management library - Data Factory V1

Use the management library to create and schedule data-driven workflows (pipelines) in Data Factory Version 1. For more information, review the documentation for Data Factory Version 1.

Install the NuGet package directly from the Visual Studio Package Manager console or with the .NET Core CLI.

Visual Studio Package Manager

Install-Package Microsoft.Azure.Management.DataFactories
dotnet add package Microsoft.Azure.Management.DataFactories

Code Example

The following example uses the management library to create a data factory.

DataFactoryManagementClient client = new DataFactoryManagementClient(aadTokenCredentials, resourceManagerUri);
client.DataFactories.CreateOrUpdate(resourceGroupName,
    new DataFactoryCreateOrUpdateParameters()
    {
        DataFactory = new DataFactory()
        {
            Name = dataFactoryName,
            Location = "westus",
            Properties = new DataFactoryProperties()
        }
    }
);

Samples

Explore more sample .NET code you can use in your apps.