| title | description | keywords | author | ms.author | manager | ms.date | ms.topic | ms.prod | ms.technology | ms.devlang | ms.service | ms.custom |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Azure Data Factory libraries for .NET |
Reference for Azure Data Factory libraries for .NET |
Azure, .NET, SDK, API, Data Factory |
camsoper |
casoper |
douge |
09/22/2017 |
reference |
azure |
azure |
dotnet |
data-factory |
devcenter |
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-previewCode 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);[!div class="nextstepaction"] Explore the management APIs
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.DataFactoriesdotnet add package Microsoft.Azure.Management.DataFactoriesCode 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()
}
}
);[!div class="nextstepaction"] Explore the management APIs
Samples
- MyDriving - An Azure IOT and Mobile Sample Application that uses Data Factory to drive insights.
Explore more sample .NET code you can use in your apps.