How to register Managed SQL Instance as a datastore in Azure Machine Learning workspace?

Engin Kapti 16 Reputation points
2020-10-27T15:14:31.907+00:00

I am trying to connect a database within the Managed SQL Instance as a datastore. Managed Instance is not among the datastore type options so I tried to select the Azure SQL database and "enter manually" option for account selection. When I enter the full hostname of the managed instance which is something like "xxx-xxxx-xxx-xxxx-sql.45bsa4569.database.windows.net" it complaints due to dot "." that comes after 'sql'. Since I do not have control over that part of the hostname (Azure adds something like '.45bsa4569' on the managed instance name itself) I do not know how to fix it.

Questions:

  1. Is it possible to register a managed instance as a datastore by using the method above? (Azure SQL database and 'enter manually' options).
  2. If possible, how to handle the '.' in the host name so that it does not complain?

FYI: The managed instance is behind a vnet so I am using service principal to authenticate.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,332 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. itai binyamin 6 Reputation points
    2021-08-12T12:59:15.757+00:00

    @azure-machine-learning

    1 person found this answer helpful.
    0 comments No comments

  2. Ramr-msft 17,826 Reputation points
    2020-10-28T12:16:20.347+00:00

    @Engin Kapti Thanks for the question. Please follow the repo and snapshot.

    Supported data storage types:https://learn.microsoft.com/en-us/azure/machine-learning/how-to-access-data#supported-data-storage-service-types

    Azure SQL MI is not officially supported per doc .
    It's possible to create a datastore on Azure SQL MI, by providing connection string to API register_azure_sql_database, but unexpected behavior may occur.

    We have forwarded to the product team and AzureML data team is looking into this issue, and will update if we find any work around.


  3. itai binyamin 6 Reputation points
    2021-08-12T12:59:24.057+00:00

    [azure-machine-learning]

    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.