Search code examples
excelazureoauthazure-data-lakeazure-data-lake-gen2

Connect excel to azure datalake gen 2 with OAuth


When I am looking at microsoft documentation of excels connections possibilities and it says that my Microsoft 365 Apps for enterprise can connect to Azure Blob Storage and Azure Data Lake Storage

I want to connect to my Datalake Gen 2 in excel, I'll go to the Data tab Get Data > From Azure > From Azure Blob Storage enter image description here

Here is the question: How do I connect to my Gen 2 datalake with Azure AD / OAuth / username ([email protected]) and password? Storage Account Key Access is disabled on this datalake. That includes Shared key and shared access signature (SAS)


Solution

  • First I want to thank KarthikBhyresh-MT for his input that inspired me to find the right solution.

    The Solution First I found the url to the desired file inside the datalake inside azure portal enter image description here

    I copied the changed the url and changed the word blob to dfs

    In excel (office 365) I Get Data > From Web, and put in the altered url. From there I get this image, where I can log into the datalake with OAuth credentials enter image description here

    Then I could load the simple.csv file into excel, work on it and see the transactions in the datalake logs.