Forum Discussion

rajeshkannanr's avatar
rajeshkannanr
Copper Contributor
Dec 19, 2023

Unable to access ADLS Gen2

Hi Team,

 

I am trying to list the contents of ADLS gen2 using API and getting the below error:

 

{"error":{"code":"InvalidAuthenticationInfo","message":"Server failed to authenticate the request. Please refer to the information in the www-authenticate header.\nRequestId:698408d2-e01f-000f-3581-325db3000000\nTime:2023-12-19T13:42:40.6151198Z"}}%

 

Here is the request: 

 

curl -i -X GET 'https://<storage account name>.dfs.core.windows.net/?resource=account' --header 'Authorization: Bearer <ACCESS TOKEN' 

 

Please let me know what I am missing in the request.  An application integration is blocked due to this issue.   Your assistance is much appreciated.

 

Regards,

Rajesh.