401 unauthorized response should be used for
missing authenticatin
*
HTTP Error 401 between Synapse Analytics and ADLS Account
WZIAFP
157
Reputation points
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?
Accepted answer
-
Krishna pandit 76 Reputation points
2022-02-04T12:50:22.24+00:00