HTTP Error 401 between Synapse Analytics and ADLS Account

WZIAFP 157 Reputation points
2022-02-04T12:13:46.457+00:00

I am following this tutorial
https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/tutorial-use-pandas-spark-pool

I've setup as per the instructions however when i run the code below i am met with a 401 error

  #Read data file from URI of default Azure Data Lake Storage Gen2  
import pandas  
   
df = pandas.read_json('https://adlsaccountname.dfs.core.windows.net/synapse/response.json')  
print(df)  

Error:
HTTPError: HTTP Error 401: Server failed to authenticate the request. Please refer to the information in the www-authenticate header.

The managed identity has Blob Contributor role as do I (i am also owner of the sub).

Can some assist?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,405 questions
{count} vote

Accepted answer
  1. Krishna pandit 76 Reputation points
    2022-02-04T12:50:22.24+00:00

    401 unauthorized response should be used for
    missing authenticatin
    *


0 additional answers

Sort by: Most helpful