简体   繁体   中英

How to connect and access Azure Datalake Gen1 storage using Azure Ad username and password only - c#

I want to connect and access Azure Datalake Gen1 storage using Azure Ad username and password only.

I have a service account that has access to the Azure Datalake Gen1 storage. I am able to connect and download the files using credentials via Microsoft Azure Storage Explorer. Also, I am able to connect in SSIS via ADLS Connection Manager and Azure Data Lake Store File System Task.

Now I need to create a console application to connect and perform certain operations (list files and folders and download files)

Searching on google all the results suggest using Azure Ad Application (clientid, tenantid etc.). Unfortunately, I do not have that option.

It looks like in SSIS ADLS Connection Manager uses some kind of WebHdfs connection that supports Azure Ad username and password. But, I am not able to implement something similar in c#.

As usual, running tight on deadlines. Any help is appreciated.

Azure Data Lake Storage Gen1 uses Azure Active Directory for authentication. Before authoring an application that works with Data Lake Storage Gen1, you must decide how to authenticate your application with Azure Active Directory (Azure AD).

The following table illustrates how end-user and service-to-service authentication mechanisms are supported for Data Lake Storage Gen1.

在此处输入图片说明

Reference: Authentication with Azure Data Lake Storage Gen1 using Azure Active Directory

Check out this Service-to-service authentication with Azure Data Lake Storage Gen1 using .NET SDK - to learn about how to use the .NET SDK to do service-to-service authentication with Azure Data Lake Storage Gen1.

For end-user authentication with Data Lake Storage Gen1 using .NET SDK, see End-user authentication with Data Lake Storage Gen1 using .NET SDK .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM