403 authentication failed, even i provided storage blob owner permissions for me(user)

Praveen Meesala 21 Reputation points
2022-12-14T08:04:43.08+00:00

Hi,

I got this error when I TRYING TO CONVERT THE DATASET TO THE PANDAS DATAFRAME. even i provided the storage blob data owner access to the uer
StreamAccessException was caused by AuthenticationException.
Identity authentication failed for 'AzureBlob GetReference'
'403: AuthenticationFailed'. Please make sure the compute or login identity has 'Storage Blob Data Reader' or 'Storage Blob Data Owner' role in the storage IAM..

Please help me i stuck at this point from last few days.

Thank you

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,543 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,471 Reputation points Microsoft Employee Moderator
    2022-12-14T13:27:28.457+00:00

    @Praveen Meesala Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Can you provide Storage Account Contributor (Permits management of storage accounts. Provides access to the account key, which can be used to access data via Shared Key authorization.) and check for the status!

    The compute managed identity is listed under service principal of IAM Access.. I selected that and I gave Storage Blob Contributor access.

    Based on the error message: You might not have been assigned the appropriate roles. The following sections describe the permissions to Blob Storage currently requires for access to your storage resources. Contact your Azure account admin if you're not sure you have the appropriate roles or permissions.

    You don't have the appropriate permission to the Blob Container, Hence you are facing this issue. Please provide the access and check for the issue.

    Assign an Azure role for access to blob data

    Let me explain how this roles works and the define of the RBAC How RBAC works

    167708-image.png

    Learn more here.

    If the issue still persist, please share the screenshot of the error message!

    Please let us know if you have any further queries. I’m happy to assist you further.


    Please do not forget to 167764-screenshot-2021-12-10-121802.png and 167668-image.png wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Praveen Meesala 21 Reputation points
    2022-12-14T17:40:27.147+00:00

    Thanks a lot for responding me sir,

    As you said i tried the same providing the Storage blob data contributor to storage account.
    And for the workspace i'm working for i'm the owner, i provide the access to it and update the authentication for the datastores still i faced the same issue. When i try to open enterprise application to provide access the page not loaded because it says no access, i don't the reason, but i'm the owner for the workspace. would you please help me how to get the access or what should i do to resolve the issue i was stuck at this point from last few days.

    UserErrorException: UserErrorException:
    Message: Execution failed in operation 'to_pandas_dataframe' for Dataset(id='414a3c50-5a6e-49b7-bf8d-2faa4375d681', name='Loan Applicationsusing sdk', version=1, error_code=ScriptExecution.StreamAccess.Authentication,error_message=ScriptExecutionException was caused by StreamAccessException.
    StreamAccessException was caused by AuthenticationException.
    Authentication failed for 'AzureBlob GetReference' operation at '[REDACTED]' with '403: AuthenticationFailed'. Please make sure the SAS token or the account key is correct.
    Failed due to inner exception of type: StorageException
    | session_id=271a502a-f1a1-420f-bd71-31e7e18b04cd) ErrorCode: ScriptExecution.StreamAccess.Authentication
    InnerException
    Error Code: ScriptExecution.StreamAccess.Authentication
    Failed Step: 808c5f24-98fc-4f99-af3e-213a75d8b0ad
    Error Message: ScriptExecutionException was caused by StreamAccessException.
    StreamAccessException was caused by AuthenticationException.
    Authentication failed for 'AzureBlob GetReference' operation at 'https://azuremlstb01.blob.core.windows.net/azuremlstb01blob/Loan Data/Loan Approval Prediction.csv' with '403: AuthenticationFailed'. Please make sure the SAS token or the account key is correct.
    Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    | session_id=271a502a-f1a1-420f-bd71-31e7e18b04cd
    ErrorResponse
    {
    "error": {
    "code": "UserError",
    "message": "Execution failed in operation 'to_pandas_dataframe' for Dataset(id='414a3c50-5a6e-49b7-bf8d-2faa4375d681', name='Loan Applicationsusing sdk', version=1, error_code=ScriptExecution.StreamAccess.Authentication,error_message=ScriptExecutionException was caused by StreamAccessException.\r\n StreamAccessException was caused by AuthenticationException.\r\n Authentication failed for 'AzureBlob GetReference' operation at '[REDACTED]' with '403: AuthenticationFailed'. Please make sure the SAS token or the account key is correct.\r\n Failed due to inner exception of type: StorageException\r\n| session_id=271a502a-f1a1-420f-bd71-31e7e18b04cd) ErrorCode: ScriptExecution.StreamAccess.Authentication"
    }
    }

    0 comments No comments

  2. Praveen Meesala 21 Reputation points
    2022-12-16T11:31:01.96+00:00

    Hi Sir,

    Would you please help me, i'm unable to perform those pandas operations(convert dataset to pandas Dataframe) that error(user error exception) still persists. I provided the error details in the above post.

    Please provide me solution for the error as soon as possible.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.