Authentication error when using imported data asset from SQL in AutoML job (Azure ML Studio)

Trevor Westin 31 Reputation points
2024-06-19T19:23:22.8433333+00:00

I'm running into an authentication error when trying to use an imported data asset in an AutoML job within Azure ML Studio. The error message I'm receiving is:


ScriptExecution.StreamAccess.Authentication

PermissionDenied(Some(The authentication information was not provided in the correct format. Verify the value of Authorization header.))

Here are the steps I've taken so far:

  1. Azure SQL Server setup:
    • Public network access is set to "Selected networks".
    • Firewall rules are configured to include our local client IP and two IPs for the Azure ML Studio resource (20.41.3.29 and 20.41.2.48).
    • "Allow Azure services and resources to access this server" is checked.
    • SQL server connection policy is set to "Default".
    • No outbound networking restrictions are in place.
  2. Create an Azure SQL DB connection:
    • Created a data connection using the SQL connection string: Server=tcp:<dbname>.database.windows.net,1433;Initial Catalog=<dbname>;Connection Timeout=30;
    • Used username and password authentication type.
    • Tested the connection successfully using the "Test Connection" button.
  3. Permissions:
    • Added the Azure ML Studio workspace as a Contributor over the Azure SQL Server resource.
  4. Data asset import:
    • Followed the steps in the Microsoft documentation to import the data asset.
    • The data import job ran successfully, and the data asset appears in the Azure ML Studio "data assets" page.
  5. AutoML job setup:
    • Selected the imported data asset during the AutoML setup.
    • Encountered the authentication error message mentioned above.

Thank you in advance for your help!

Azure SQL Database
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,960 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 52,776 Reputation points
    2024-06-20T02:42:29.53+00:00

    Hello Trevor,

    Thanks for reaching out to us! I have seen this issue before, there is a troubleshooting guidance here - https://learn.microsoft.com/en-us/azure/machine-learning/how-to-troubleshoot-data-access?view=azureml-api-2#scriptexecutionstreamaccessauthentication

    It can resolve most of the cases. Please take a look and have a try to see if this is helpful.

    I hope this helps! Please let us know if you have any question.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    1 person found this answer helpful.
    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.