SQL Managed Instance as data source for Power BI dataset - Connection Fails

Aayush Suresh Jain 146 Reputation points
2023-08-28T08:44:24.5166667+00:00

I have a SQL database created in Azure SQL Managed Instance. I created a Power BI dataset and report from Power BI desktop and published the same to the Power BI portal. I am able to connect to the SQL database from my laptop.

However, on the power bi portal, when I try to connect to the source, I get the following error :
User's image

The Azure SQL managed instance is under a virtual network and for that VNet, I have added a rule to the NSG that should allow PowerBI to connect to it.
User's image

On the networking for the Azure SQL Managed Instance, I have Public endpoint(data) option DISABLED.

I still receive the same error. What should I do to have the PowerBI data source working?

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. SSingh-MSFT 16,371 Reputation points Moderator
    2023-08-28T12:57:39.8733333+00:00

    Hi Aayush Suresh Jain •,

    Welcome to Microsoft Q&A forum and thanks for using Azure Services.

    As I understand, you are unable to connect to Azure SQL Managed Instance from Power BI.

    Could you please let us know if this is first time you are trying to connect, or this connection was earlier working and now stopped working?

    Please refer to below points meet for your Azure SQL MI:

    • Private endpoints to SQL Managed Instance can only be used to connect to port 1433, the standard TDS port for SQL traffic. More complex connectivity scenarios requiring communication on other ports must be established via the instance's VNet-local endpoint.
    • Private endpoints to Azure SQL Managed Instance require a special setup to configure the required DNS resolution, as described in Set up domain name resolution for private endpoint.
    • Private endpoints always operate with the proxy connection type.

    Note:

    Azure SQL Managed Instance requires the connection string from the SQL client to bear the name of the instance as the domain name's first segment (for example: <instance-name>.<dns-zone>.database.windows.net). PaaS and SaaS services that attempt to connect to Azure SQL Managed Instance's private endpoint via its IP address will not be able to connect.

    Reference documents: https://techcommunity.microsoft.com/t5/azure-sql-blog/integrate-microsoft-cloud-services-with-your-azure-sql-database/ba-p/1083543

    https://www.mssqltips.com/sqlservertip/5953/create-power-bi-connection-to-azure-sql-database/

    Thanks

    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.