Hi Jun ,
Greetings! Welcome to Microsoft Q&A Forum. Thanks for posting you query here!
when generating a SAS token for Azure Data Lake Storage. This can happen due to several reasons, including incorrect path formatting or insufficient permissions.
I suggest few steps you can take to troubleshoot the issue.
- Path Formatting: Ensure that the path you specify is correctly formatted. For example, it should not start with a leading slash. Instead of
data/testTable
, trydata/testTable
. - Permissions: Verify that the permissions set in the SAS token are appropriate for the operations you intend to perform. For example, if you need to write to the path, ensure that the
write
permission is included.
Make sure the SAS token is generated with the correct scope. If you're specifying a path, the token needs to have permissions for that specific path.
Error Details: The error message Status code 403 AuthenticationFailed
indicates that the server failed to authenticate the request. This could be due to an incorrect signature. Double-check the values used to generate the SAS token, including the account name, key, and permissions.
For more information:
https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-java-get-started?tabs=azure-ad
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you