你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

用于 .NET 的 Azure Data Lake Analytics 库

概述

Azure Data Lake Analytics 是一项按需分析作业服务,用于简化大数据分析。

有关详细信息,请参阅 Microsoft Azure Data Lake Analytics 概述

管理库

使用管理库可连接到服务和管理分析作业。

直接从 Visual Studio 包管理器控制台或使用 .NET Core CLI 安装 NuGet 包

Visual Studio 包管理器

Install-Package Microsoft.Azure.Management.DataLake.Analytics
dotnet add package Microsoft.Azure.Management.DataLake.Analytics

代码示例

此示例创建用于连接和管理分析帐户的客户端。

/*
using AdlClient 
*/

// Setup authentication for this demo
Authentication auth = new Authentication("microsoft.onmicrosoft.com"); // change this to YOUR tenant
auth.Authenticate();

// Identify the accounts
AnalyticsAccountRef adla_account = new AnalyticsAccountRef(subscriptionId, resourceGroup, userName);

// Create the clients
AzureClient az = new AzureClient(auth);
AnalyticsClient adla = new AnalyticsClient(auth, adla_account);

示例

详细了解可在应用中使用的示例 .NET 代码