【问题标题】:How to connect and access Azure Datalake Gen1 storage using Azure Ad username and password only - c#如何仅使用 Azure Ad 用户名和密码连接和访问 Azure Datalake Gen1 存储 - c#
【发布时间】:2020-12-30 11:50:03
【问题描述】:

我想仅使用 Azure Ad 用户名和密码连接和访问 Azure Datalake Gen1 存储。

我有一个可以访问 Azure Datalake Gen1 存储的服务帐户。我可以通过 Microsoft Azure 存储资源管理器使用凭据连接和下载文件。此外,我还可以通过 ADLS Connection Manager 和 Azure Data Lake Store File System Task 在 SSIS 中进行连接。

现在我需要创建一个控制台应用程序来连接并执行某些操作(列出文件和文件夹并下载文件)

在谷歌上搜索所有结果都建议使用 Azure 广告应用程序(clientid、tenantid 等)。不幸的是,我没有那个选项。

看起来 SSIS ADLS 连接管理器使用某种支持 Azure Ad 用户名和密码的 WebHdfs 连接。但是,我无法在 c# 中实现类似的东西。

像往常一样,在截止日期前赶时间。任何帮助表示赞赏。

【问题讨论】:

    标签: c# azure azure-data-lake webhdfs


    【解决方案1】:

    Azure Data Lake Storage Gen1 使用 Azure Active Directory 进行身份验证。在创作使用 Data Lake Storage Gen1 的应用程序之前,您必须决定如何使用 Azure Active Directory (Azure AD) 对您的应用程序进行身份验证。

    下表说明了 Data Lake Storage Gen1 如何支持最终用户和服务到服务的身份验证机制。

    参考:Authentication with Azure Data Lake Storage Gen1 using Azure Active Directory

    查看此Service-to-service authentication with Azure Data Lake Storage Gen1 使用 .NET SDK - 了解如何使用 .NET SDK 通过 Azure Data Lake Storage Gen1 执行服务到服务身份验证。

    有关使用 .NET SDK 通过 Data Lake Storage Gen1 进行最终用户身份验证,请参阅End-user authentication with Data Lake Storage Gen1 using .NET SDK

    【讨论】:

      猜你喜欢
      • 2017-04-07
      • 2022-11-26
      • 2020-06-16
      • 2017-03-01
      • 2021-07-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多